AD
Administrator
Syncfusion Team
December 18, 2006 04:18 AM UTC
Hi Vladymyr,
Use the Style.CellValueType property to get the type of the cell values in a Grid. Here is a below code snippet to show this.
private void grid_TableControlCurrentCellErrorMessage(object sender, GridTableControlCurrentCellErrorMessageEventArgs e)
{
//Get the CurrentCell value type in a grid.
GridCurrentCell cc = e.TableControl.CurrentCell;
GridStyleInfo style = cc.Renderer.CurrentStyle;
Type type = style.CellValueType as Type;
e.Inner.Cancel = true;
MessageBox.Show("CurrentCell Type : " + type.ToString() , "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning);
}
Best Regards,
Haneef