Kbase P157135: How can I detect that the selected row in my UltraGrid has been filtered out by the user?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  09/12/2009 |
|
Status: Unverified
GOAL:
How can I detect that the selected row in my UltraGrid has been filtered out by the user?
GOAL:
How can I select the first row in my UltraGrid viewport when the selected row has been filtered out by the user?
FACT(s) (Environment):
Windows
OpenEdge 10.2x
FIX:
The following code, when attached to the UltraGrid's AfterRowFilterChanged event, shows how to detect if the selected row has been filtered out by the user and if it has been it shows how to select the first row in the viewport:
if ultraGrid1:ActiveRow:IsFilteredOut = true then
do:
ultraGrid1:Selected:Rows:Clear().
ultraGrid1:Rows:GetRowAtVisibleIndex(0):Activate().
ultraGrid1:ActiveRow:Selected = true.
end.