You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Rosi Delphi Components
How can I get the current row of a dbgrid
Tomas Rosinsky
unread,
Mar 11, 2016, 1:54:58 AM3/11/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Rosi Delphi Components
DBGrid does not public Row property but you can read it by following hack:
type
THackDBGrid = class(TDBGrid);
function ReadRowIndex: integer;
begin
Result := THackDBGrid(DBGrid1).Row;
end;
Be carefull to use Row property in DBGrid. You can read it (even I do not know why) but never set Row directly. To select any row you have to move dataset to needed record.