c#.net control ,datagridview

  • Thread starter Thread starter sridhar kumar
  • Start date Start date
sridhar said:
how to change the colur of datagridview control column and rows

each DataGridViewColumn does have a "DefaultCellStyle" which you can set
in advance. There also is RowTemplate which has a CellStyle, and
RowsDefaultCellStyle.

If you want to change colours at runtime, you could have a look at the
BeforeCellPaint event.
 
Back
Top