Consultor Eletrônico



Kbase P162724: Unable to delete selected record when using Infragistics.UltraGrid
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/4/2010
Status: Unverified

SYMPTOM(s):

Unable to delete selected record when using Infragistics.UltraGrid

When deleting records shown in a Infragistics.UltraGrid, the database gets out of sync with the local binding source

Attempting to delete the selected record works the first time

Subsequent attempts to delete the selected records will always delete the first record of the list rather than the one that was automatically selected

FACT(s) (Environment):

OpenEdge 10.2B
All Supported Operating Systems

CAUSE:

Bug# OE00196646

FIX:

Set the Position property for the bindingsource, and the grid and fields will stay in sync, and the intended record will be deleted every time.

IF ultraGrid:Rows:Count > 0 THEN
DO :
ultraGrid:Rows[vNextActiveRow]:Activate().
ultraGrid:ActiveRow:Selected = TRUE.
ultraGrid:Focus().
bindingSource:POSITION = vNextActiveRow.
END.