Kbase P140737: How to sort an UltraGrid on the child bands?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  04/02/2009 |
|
Status: Unverified
GOAL:
How to sort an UltraGrid on the child bands?
FACT(s) (Environment):
OpenEdge 10.2A
Windows
FIX:
In an UltraGrid where the 2nd band contains a field named "Carrier" the following code will initialize the band being sorted on "Carrier" column.
DEFINE VARIABLE ultraGridBand2 AS Infragistics.Win.UltraWinGrid.UltraGridBand NO-UNDO.
DEFINE VARIABLE ultraGridColumn AS Infragistics.Win.UltraWinGrid.UltraGridColumn NO-UNDO.
ultraGridBand2 = ultraGrid1:DisplayLayout:Bands[1].
ultraGridColumn = ultraGridBand2:Columns["Carrier"].
ultraGridColumn:SortIndicator = Infragistics.Win.UltraWinGrid.SortIndicator:Ascending.