Get Alternating Row Status From DataGridView
-
21-09-2019 - |
Question
if i change the backcolour of a datagridviewrow that belongs to a datagridview control using alternating row colours and i want to programatically change it back, how do i know if the row was a normal row or an alternating row so i know what colour to change it back to? is there a property i have missed?
Solution
... realised you can simply set the style back to the rowcelldefaultstyle and it will do the hard work for you.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow