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

C# Add DataRow to the End of a DataGridview from DataTable

$
0
0

I'm not sure on a best approach to this.  Was hoping for some help.  In short,  I have a DGV that pulls unscheduled workorders from the database (this.datasource = theTable)  When I change the collection and update, the grid loses it's sort order, and bound grids apparently don't let you do row.remove and row.add according to anything I've found

So the question, what's the best approach if I wanted to be able to schedule something and have that row disappear, or un-schedule something and have it added to the bottom of the grid without changing the rest of it?  Should I feed it through a list<class> and aim updates at the list<> or something to that effect?


May the fleas of a thousand camels feast happily on the lower regions of your enemies. And may their arms be too short to scratch!


Viewing all articles
Browse latest Browse all 2535

Trending Articles



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