Hi Amol,
We regret for the delay in responding you.
It is possible to get the cellvalue of gridcell in QueryCellInfo event by using the GridData. The GridData returns a StyleInfoStore. We need to create an instance of a GridStyleInfo to get access to all the style property of the gridcell. Please refer the following code snippet that illustrates this:
private void gridControl1_QueryCellInfo(object sender, Syncfusion.Windows.Forms.Grid.GridQueryCellInfoEventArgs e)
{
GridControl Grid = sender as GridControl;
GridStyleInfoStore data = Grid.Data[e.RowIndex, e.ColIndex] as GridStyleInfoStore;
if (data != null)
{
GridStyleInfo style = new GridStyleInfo(data);
MyType mytype = style.CellValue as MyType;
if (mytype != null)
{
e.Style.Text = mytype.Name;
}
}
Console.WriteLine("xxx" + e.Style.Text);
}
}
Please find the simple sample in the following link:
http://websamples.syncfusion.com/samples/Tools.Windows/F70677/main.htmPlease let me know if any concerns.
Regards,
Fathima