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:
I have Googled around but could not find a fix for this :(
Thanks for any help.
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
Thanks for any help.