private void dgFinancialYear_CellEditEnding(object Sender,DataGridCellEditEndingEventArgs e)
{
if(getCurrentCellValue((TextBox)e.EditingElement)=="")
{
e.Cancel=true;
}
}
private string getCurrentCellValue(TextBox txtCurCell)
{
return txtCurCell.Text;
}