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

Don't reorder datagridview when user edits it

$
0
0
I have a datagridview which is editable. The data gets loaded into the datagridview from a binding source which gets it's data from a datatable. It's originally ordered based on the ID column which is 1,2,3,4,5,6,7,8... which is the way I like it and the way I would like it to stay. When the user changes one of the columns data it orders the datagridview based on that column so every time the user changes something the datagridview rows jump around. I would like to know if there is a way that the datagridview won't reorder every time the user changes the data?

Debra has a question


Viewing all articles
Browse latest Browse all 2535

Trending Articles



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