Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15072

[RESOLVED] VB.net Datagridview's display order is different than the data source

$
0
0
Hi
I am having difficulties to fix my issue of display order of a datagridview that is used to display the content of different datatables.
The exact issue is that when the datasource of the DGV is changed, then the columns are not in the exact order as in the datatable. This is how I do it:

Code:

Dim MyBindingSource As New BindingSource()
MyBindingSource.DataSource = ThisTable

With ThisDGV                       
 .DataSource = MyBindingSource
end With

I have Googled around but could not find a fix for this :(

Thanks for any help.

Viewing all articles
Browse latest Browse all 15072

Trending Articles



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