Hi Supriya,
Thank you for your interest in Syncfusion products.
If you want to check the entered value in currentcell is
either character or integer value for particular column in a grid, you can use “TableControlCurrentCellEditingComplete” event.
Please refer the below code,
Code:
this.gridGroupingControl1.TableControlCurrentCellEditingComplete
+= new Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlEventHandler(gridGroupingControl1_TableControlCurrentCellEditingComplete);
void
gridGroupingControl1_TableControlCurrentCellEditingComplete(object sender,
Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlEventArgs
e)
{
GridCurrentCell cc = this.gridGroupingControl1.TableControl.CurrentCell;
if (cc.ColIndex == 5)
// check for particular column
{
string str = this.gridGroupingControl1.TableModel[cc.RowIndex,
cc.ColIndex].Text;
int Num;
bool isNum = int.TryParse(str, out
Num);
if (isNum) // integer value
MessageBox.Show("Integer Value as :" + Num.ToString());
else // character value
MessageBox.Show(" Enter integer value");
}
}
Please let us know if you have any concerns.
Regards,
Muthukumar K
Attachment:
Check__Char_or_Number_value_d92fb609.zip