Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

BindingList.ResetBindings

$
0
0

I have set  DataSource for DataGridView, and  set color of each row in DataGridView;

When updating DataGridView, I used the way of below: while updating finished, the color of each row  is disappear

bindingSource.RaiseListChangedEvents = false;
//
// do data intensive work here
//
bindingSource.RaiseListChangedEvents = true;
bindingSource.ResetBindings();

I want to keep the property (e.g: row color, row height ), after reset binding! How can i do?


Viewing all articles
Browse latest Browse all 2535

Trending Articles



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