JJ
Jisha Joy
Syncfusion Team
November 25, 2008 09:59 AM UTC
Hi,
Thank you for posting query to us.
You have to handle QueryCellInfo to apply cell specific styles in GridDataBoundGrid. You can check for the Colindex and RowIndex to track the specific cell and set the styles.
Please refer the code:
//Event
this.gridDataBoundGrid1.Model.QueryCellInfo += new Syncfusion.Windows.Forms.Grid.GridQueryCellInfoEventHandler(Model_QueryCellInfo);
//Event Handler
void Model_QueryCellInfo(object sender, Syncfusion.Windows.Forms.Grid.GridQueryCellInfoEventArgs e)
{
if (e.ColIndex == 2 && e.RowIndex == 2)
{
e.Style.BackColor = Color.BlueViolet;
e.Style.Borders.All = new GridBorder(GridBorderStyle.DashDotDot, Color.DarkCyan);
}
}
Please let me know if this helps.
Regards,
Jisha