How to remove Column from objectlistview in C# winform before assigning dynamic DataSource

33 Views Asked by At

I am trying to assign a new DataSource dynamically to a DataListView from BrightIdeasSoftware.

My data (type: System.Data.DataTable) which is dynamic may not have the same columns; because of this, I am encountering an exception:

An unhandled exception of type 'System.ArgumentException' occurred in System.Data.dll

ErrorEncountered : PreviouslyRenderedMyColumn is neither a DataColumn nor a DataRelation for table

0

There are 0 best solutions below