Hi Karle,
Thank you for using Syncfusion products.
A custom CellType can be created in a GridGroupingControl. Custom celltype requires a 'model' class and a 'renderer' class. The model class handles the serialization requirements for the control and creates the renderer class. The renderer class handles the UI requirements of the cell, such as drawing it, handling mouse actions etc.
Here is the minimal sample which shows you how to create a custom celltype(which include the custom control "MyControl").
SampleIn GridGroupingControl we need to handle either QueryCellStyleInfo event or TableControlPrepareViewStyleInfo event to apply cell specific styles. See the code: You could check for the col/row index and set the styles.
this.gridGroupingControl1.QueryCellStyleInfo += new GridTableCellStyleInfoEventHandler(gridGroupingControl1_QueryCellStyleInfo);
void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
if (e.TableCellIdentity.ColIndex == 2 && e.TableCellIdentity.RowIndex == 5)
e.Style.BackColor = Color.SteelBlue;
}
Please let me know if you have any questions.
Regards,
Jisha