Hi Vincent,
Thank you for contacting Syncfusion support,
We have analyzed your query and you can change the background for cell using QueryCellInfo event. Please refer the below code snippet.
Code snippet[C#]:
void Model_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e)
if(e.Style.RowIndex == 3 && e.Style.ColumnIndex == 4)
e.Style.Background = Brushes.SandyBrown;
e.Style.Font.FontStyle = FontStyles.Italic;
|
We have prepared the sample based on this and you can download it from following location,
Also we have a SfDataGrid control like GridDataControl. But when compared to GridDataControl, SfDataGrid has a better performance and flexibility. SfDataGrid assists you to create entirely customizable and highly interactive features used to display and manipulate the huge amount of data. So, we suggest you to use SfDataGrid instead of GridDataControl
You can also achieve the same requirement in SfDataGrid. Please refer the below KB link to change background color for Cell also refer the sample from the KB.
You can also refer the below documentation link to know more about styles in SfDataGrid,
Please let us know if you have any other queries,
Regards,
Saravanan.M