Hi Sulma,
I am afraid that I was not able to reproduce the reported issue "Reference object not set to an instance of an object" . Also I have created a simple sample to test this issue and it is available in the following link.
Code snippet [C#]
this.gridGroupingControl1.QueryCellStyleInfo += new GridTableCellStyleInfoEventHandler(gridGroupingControl1_QueryCellStyleInfo);
void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
if (e.TableCellIdentity.Column!=null && e.TableCellIdentity.Column.Name=="Contact" && e.TableCellIdentity.DisplayElement.Kind== DisplayElementKind.Record )
{
e.Style.CellType = "PushButton";
e.Style.Description = "Click Me";
}
}
Here is sample for your reference
http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=Sample1738834677.zipPlease have a look at the preceding sample and if still the issue exists, could you please try reproducing it in the above sample or send us the reproducing steps so that we could sort out the cause of the issue and provide you a solution?
Regards,
R.Mahendran.