Hi, when the user searchs the grid and there's no result. There is an empty row with the checkbox usable. So the user selects the checkbox and gets the following error: (attached)
Please fix this in order to display nothing, or don't allow to edit that empty row.
I've tried this code without success:
if not sqlqyProductos1.IsEmpty then
begin
sqlqyProductos1.First;
dbgProductos.ReadOnly := False;
dbgProductos.Columns[0].ReadOnly := False;
dbgProductos.Columns[0].DirectInput := True;
end
else
begin
dbgProductos.ReadOnly := True;
dbgProductos.Columns[0].ReadOnly := True;
dbgProductos.Columns[0].DirectInput := False;
end;