Problem with coloring a datagridview

  • Thread starter Thread starter vblover29
  • Start date Start date
V

vblover29

Guest
I have a datagridview that displays all the records in a database the first time the winform is loaded. The color of each row is chosen according to the value of a boolean field in the record. If the value is true then the backcolor is set to red otherwise to green. On the winform there is also a conbobox which allows the user to select either all of the records, only the red ones or only the green ones. The records displayed are as expected but the backcolor is not. No matter what the combobox item that is selected The datagridview remembers only the very first display. For exemple if in the first display the 4th record was red, then selecting only the green ones from the combobox, the 4th record in the datagridview is red even if data wise it is a green. How can i fix that? Thanks.

Continue reading...
 
Back
Top