DBGrid Selected Filtered rows
I have a dbgrid with multi-select = true. The grid also has TitleMenuAttrinutes.MenuEnable = True and TitleMenuAttrinutes.Option.Filter = True.
I then select all items in the grid. I then Filter so that only 3 rows of 20 display in the grid.
I have button that allows me to process the select 3 items with the following code snippet:
if wdbgrdAction.DataSource.DataSet.Active and not wdbgrdAction.DataSource.DataSet.EoF then
begin
with wdbgrdAction, wdbgrdAction.DataSource.DataSet do
begin
// DisableControls;
for lv_I := 0 to SelectedList.Count - 1 do
begin
if BookmarkValid(SelectedList.Items[lv_I]) then
begin
GotoBookmark(SelectedList.Items[lv_I]);
{... do some stuff ..}
end;
end;
// EnableControls;
end;
end;
At the GotoBookmark the following error is generated:
Project Impulse_64.exe raised exception class EDatabaseError with message 'qryAction: Record not found'.
How do I resolve this error?
TIA
Please sign in to leave a comment.
Comments
1 comment