Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
210
sorting in ultra web grid
posted

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(

 

"NTUserID").SortCaseSensitive = Infragistics.WebUI.Shared.DefaultableBoolean

.True;

e.Layout.Bands[0].Columns.FromKey(

 

"NTUserID").SortingAlgorithm = Infragistics.WebUI.UltraWebGrid.SortingAlgorithm

.QuickSort;

 

e.Layout.Bands[0].Columns.FromKey(

 

"NTUserID").SortIndicator = Infragistics.WebUI.UltraWebGrid.SortIndicator

.Ascending;

}

i have alse set the AllowSortingDefault

AllowSortingDefault

 

="NotSet"

But sorting is not taking place,Please help me?