Recent

Author Topic: RxDBGrid checkbox field issues  (Read 2091 times)

lainz

  • Hero Member
  • *****
  • Posts: 4621
  • Web, Desktop & Android developer
    • https://lainz.github.io/
RxDBGrid checkbox field issues
« on: March 21, 2023, 02:46:11 pm »
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:

Code: Pascal  [Select][+][-]
  1.     if not sqlqyProductos1.IsEmpty then
  2.     begin
  3.       sqlqyProductos1.First;
  4.       dbgProductos.ReadOnly := False;
  5.       dbgProductos.Columns[0].ReadOnly := False;
  6.       dbgProductos.Columns[0].DirectInput := True;
  7.     end
  8.     else
  9.     begin
  10.       dbgProductos.ReadOnly := True;
  11.       dbgProductos.Columns[0].ReadOnly := True;
  12.       dbgProductos.Columns[0].DirectInput := False;
  13.     end;

 

TinyPortal © 2005-2018