Hi,
I’m trying to make the Xceed Grid use a List(Of T) as its datasource and display defined columns only.
I defined some columns in the designer (Add column (unbound)) and set the fieldnames.
Then calling this:
grid.AutoCreateColumns = False
grid.DataSource = myList
Gives me the following exception:
The new data binding could not be set because there is an unbound column in the grid that has the same field name as one of the bound columns. FieldName: ItemNo
Is there a way to achieve this, or will I have to hide all unwanted columns in code? The standard DataGridView works fine this way.
Thanks
Imported from legacy forums. Posted by Sven (had 868 views)