Kbase P169700: 4GL/ABL: How to reposition the UltraGrid to the first and last row?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  7/13/2010 |
|
Status: Unverified
GOAL:
4GL/ABL: How to reposition the UltraGrid to the first and last row?
GOAL:
How to use the UltraGrid GetRow() Method to quickly navigate to the first or last row in the UltraGrid control?
GOAL:
How to use the UltraGrid ActiveRow GetSibling() Method to quickly navigate to the Next or Previous rows in the UltraGrid control?
FACT(s) (Environment):
Windows
OpenEdge 10.2x
FIX:
The following code sample uses the UltraGrid GetRow() Method to quickly reposition the UltraGrid to the first and last rows respectively and uses the UltraGrid ActiveRow GetSibling() Method to navigate to the Next or Previous rows in the UltraGrid control:
@VisualDesigner.
METHOD PRIVATE VOID ultraButton1_Click( INPUT sender AS System.Object, INPUT e AS System.EventArgs ):
/* Reposition the UltraGrid to the First row */
FunctGrid:ActiveRow = FunctGrid:GetRow(Infragistics.Win.UltraWinGrid.ChildRow:First)
END METHOD.
@VisualDesigner.
METHOD PRIVATE VOID ultraButton2_Click( INPUT sender AS System.Object, INPUT e AS System.EventArgs ):
/* Reposition the UltraGrid to the Last row */
FunctGrid:ActiveRow = FunctGrid:GetRow(Infragistics.Win.UltraWinGrid.ChildRow:Last) .
END METHOD.
@VisualDesigner.
METHOD PRIVATE VOID ultraButton3_Click( INPUT sender AS System.Object, INPUT e AS System.EventArgs ):
/* Reposition the UltraGrid to the Next row */
FunctGrid:ActiveRow = FunctGrid:ActiveRow:GetSibling(Infragistics.Win.UltraWinGrid.SiblingRow:Next).
END METHOD.
@VisualDesigner.
METHOD PRIVATE VOID ultraButton4_Click( INPUT sender AS System.Object, INPUT e AS System.EventArgs ):
/* Reposition the UltraGrid to the Previous row */
FunctGrid:ActiveRow = FunctGrid:ActiveRow:GetSibling(Infragistics.Win.UltraWinGrid.SiblingRow:Previous).
END METHOD.