Forum > Lazarus Extra Components

RxDBGrid checkbox field issues

(1/1)

lainz:
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  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---    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;

Navigation

[0] Message Index

Go to full version