Home Forums WinForms controls Xceed Grid for WinForms Clearing the grid Reply To: Clearing the grid

User (Old forums)
Post count: 23064

Thank you for your response. I tried what you suggested, and I still get an exception on the Remove() call: “The index must be greater than or equal to 0 and less than Count.” Which is what I was getting before.

Dim i As Integer
For i = 0 To GridControl1.Columns.Count – 1
GridControl1.Columns.Remove(GridControl1.Columns.Item(i)) ‘<—- Exception here

Imported from legacy forums. Posted by Paul.Chernyakov (had 304 views)