Let say i have 5 columns on the grid and i wanted on the first 3 columns able to sort and the last 2 is not., how can i approach this.
Thanks
Thanks you, its working for me
My advice is to first allow all columns to allow sorting by default, then prevent sorting on the individual columns you don't want to be sorted. This is because you have more columns you want to be able to sort than that you don't.
For the first part, set the grid's DisplayLayout.HeaderClickAction to either SortSingle or SortMulti (these are values in the Infragistics.WebUI.UltraWebGrid.HeaderClickAction enumeration).
For the second, set the individual columns' Header.ClickAction property to Select (a value in the same enumeration). This is the one value in the enumeration that will prevent sorting.