Skip to forum content
My Visual Database
A Simple Solution for Creating Databases
You are not logged in. Please login or register.
Active topics Unanswered topics
Search options
Hi Sib,
It's strange... When I first start application and when there are not rows selected in TableGrid1, when I click button, it selects all rows (visible and hidden). If i click on one row in table (manually select row) and then click button, script works (then it selects only visible rows).
Hi Brian,
In this case, there is no rows selected.
Hi all,
I need script on button click to select all visible rows from Form1.TableGrid1. I tried with this script but it selects only last visible row
procedure Form1_Button9_OnClick (Sender: TObject; var Cancel: boolean);
var vr: integer;
begin
for vr := 0 to form1.tablegrid1.rowcount -1 do
if (form1.tablegrid1.cell[12,vr].AsString = 'show') then
form1.tablegrid1.SelectedRow := vr;
end;
Thanks,
Vladimir
Hi my man, this works great. Thanks for help.
Vladimir
Hi all,
I'm trying to order table grid by two items (columns) but I'm not sure what is syntax. For example, ORDER BY customers.date_registered - DESCENDING; customers.name ASCENDING.
I'll attach screenshot from my example.
Thanks in advance,
Vladimir
Posts found: 5