Hi Nikolic,
Thank you for using Syncfusion products.
QueryCellInfo is used to provide the cell values on demand. The QueryCellInfo is used to completely customize the grid cells. The code below sets up a Virtual Grid by applying these events and also paints alternate rows using QueryCellInfo event. The QueryCellInfo event is raised for each cell that requires redrawing.
Please refer the code snippet and the sample from the following
[Code Snippet]
this.dataGrid.Model.QueryCellInfo += new GridQueryCellInfoEventHandler(Model_QueryCellInfo);
void Model_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e)
{
if (e.Cell.ColumnIndex == 1 && e.Cell.RowIndex == 3)
{
e.Style.Background = Brushes.Brown;
}
}
Let us know if you need any other details.
Regards,
Jeraldes J
GDC-CellEdit-96394_e968942f.zip