c#.net control ,datagridview

M

Matthias Krug

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top