Hi guys,
I have a ultra web grid which has 4 columns , i want it sort the content based on first column.
I wrote the following code in my ultrawebgrid_initializelayout()
{
e.Layout.Bands[0].Columns.FromKey(
.True;
.QuickSort;
.Ascending;
}
i have alse set the AllowSortingDefault
AllowSortingDefault
="NotSet"
But sorting is not taking place,Please help me?
What you've done is to enable sorting, and to set the sort indicator on a specific column. You also need to add that column to the band's SortedColumns collection.
See the following article from our online Knowledge Base for more details:HOWTO: How can I sort a column programmatically in UltraWebgrid?