Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Force gridview to reformat all rows?

$
0
0

I have a code that colors each row depending on a condition met with in its data. I have set up a scheme to allow the user to show only certain color rows by setting one of 4 booleans to true

bolShowRed

bolShowYello

bolShowOrange

bolShowAll


With in the row formatting code these bols are evaluated. If one is set to true then any rows not meeting that color are not shown. My question is if my grid is already alive, well, and loaded and my user decided to only want to view say, yellow rows. Is there a way to force the gridview to re evaluate each row in its data source? I do not want to unload the data source and re-load it. That seems too clunky. Currently my code does not work when the bools are set because many of the rows have already been passed through the row formatting event. It works if I start scrolling the grid but not before.


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>