I'm using the win ultragrid v. 15 in visual studio 2010, Visual Basic
I'm trying to clear all column sorts (single band) on an ultragrid. All of my searches have turned up (old) posts about calling the ultragrid.bands(0).SortedColumns.clear(), but that method does not appear to exist on the version 15 of the ultragrid. what method has replaced it?
Hello Vince,
I believe you are using Infragistics 15.1 or 15.2. SortedColumns.Clear method exists in both of these versions. Please try modifying your code like below in order to resolve this issue:
this.ultraGrid1.DisplayLayout.Bands(0).SortedColumns.Clear()
Please let me know if I may be of further assistance.
Sincerely,Sahaja KokkalagaddaAssociate Software Developer
Yep, that worked. It turns out I was using C# syntax for the index instead of VB code. woops!
caseUltraGrid.DisplayLayout.Bands[0].SortedColumns.Clear() (notice the brackets) vs.
caseUltraGrid.DisplayLayout.Bands(0).SortedColumns.Clear()