Thursday, August 10, 2006

DataGridView - don't highlight selection

If you don't want to highlight the selected row in your DataGridView - maybe the whole grid is read only and you don't want users to be able to highlight a row because you don't do anything special with the highlighted row - here's how to do it:

go to your defaultCellStyle under your DataGridView properties.

Set SelectionBackColor to white (or same color as non-selected rows)

Voila!

1 comment:

Anonymous said...

This really helped me a lot mate! Thanks a ton! \^o^/