HA
haneefm
Syncfusion Team
June 27, 2007 08:02 PM UTC
Hi Richard,
You can hanlde the PrepareViewStyleInfo event of the grid and change the color of the selected using the e.Style.BackColor property from the GridPrepareViewStyleInfoEventArgs. Belwo are the code snippet to show this.
void gridDataBoundGrid1_PrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e)
{
GridDataBoundGrid _grid = sender as GridDataBoundGrid;
if( _grid.Model.SelectedRanges.AnyRangeIntersects(GridRangeInfo.Cell(e.RowIndex,e.ColIndex)) )
e.Style.BackColor = Color.Yellow;
}
Best regards,
Haneef