datagridview columns order
-
Hello everyone, I have a little question. I have a datagridview with an unbound column, and some other columns inserted from a datatable as the datasource for the grid. My problem is, the unbound column is always shown as the first column on the left. I need that column to be the last on the right. any idea on how to do this? thanks in advance for your help! ~~~ From Milano to The Hague, easy as it goes ~~~
-
Hello everyone, I have a little question. I have a datagridview with an unbound column, and some other columns inserted from a datatable as the datasource for the grid. My problem is, the unbound column is always shown as the first column on the left. I need that column to be the last on the right. any idea on how to do this? thanks in advance for your help! ~~~ From Milano to The Hague, easy as it goes ~~~
You can set the order of DataGridView Columns using the DisplayIndex property. DataGridViewName.Columns("ColumnName").DisplayIndex = X