View Single Post
Banned
26Aug2009,11:14  
naimish's Avatar
Try with below example

Quote:

private void OnCellPainting(object sender,
DataGridViewCellPaintingEventArgs e)
{
if (e.ColumnIndex < 0)
{

e.Graphics.FillRectangle(Brushes.Aqua, e.CellBounds);
e.Handled = true;
}
}