Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
830
Rebuild DataSource but keep selection (and other properties) intact?? How to do that?
posted

With MS Grid (DataGridView) I can have few cells selected... Then do:

BeginInit

dataGridView.DataSource = some data table

EndInit

 

And then it will refresh the cells on the grid but the selection will remain as it was.

 

With infragistics it is not possible.... If i try to set the datasource while I'm in BeginInit and then I do EndInit then the grid is not being updated no matter what I do.

I also tried to do SuspendLayout change the values in the datasource and then resumelayout, but then I look the cells selection.

 

Any other way around, or a better way to do that I want to do?

 

Thanks