Consultor Eletrônico



Kbase P175914: How to programmatically change the sort of an UltraGrid at runtime
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/22/2010
Status: Unverified

GOAL:

How to programmatically change the sort of an UltraGrid at runtime

GOAL:

How to re-sort an UltraGrid without user interaction

FACT(s) (Environment):

Windows
OpenEdge 10.2x

FIX:

There are two ways to accomplish this:

1) Using the SortIndicator property of the UltraGrid:band:columns object
e.g.
<grid>:DisplayLayout:Bands[0]:Columns["<ColumnName>"]:SortIndicator = SortIndicator:Ascending | Descending | Disabled | None

2) Using the SortedColumns object of the UltraGrid:Band object
e.g.
<grid>:DisplayLayout:Bands[0]:SortedColumns:Add("<ColumnName>")
<grid>:DisplayLayout:Bands[0]:SortedColumns:Remove("<ColumnName>")