flex3 - Sorting problem after grouping -


Here's my advance data grid without grouping,

Once I apply the closing, Looking down, looking down,

Here is a piece of code that is applied after grouping and the grouping selection is assigned to the grid.

  validateNow (); Var s: Sort = New Sort (); S.fields = [New Order Field ("Danger")]; S.comparefunction = DangerArt Item; DataGrid.dataProvider.sort =; DataGrid.dataProvider.refresh ();  

Here is my comparison function,

  Personal Function Dangers (A: Object, B: object, field: array = null): int {return ObjectUtil .stringCompare (a.hazardnum.toString (), b.hazardnum.toString (), false); }  


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -