EhLib.Com
https://forum.ehlib.com/en/

fix the record?
https://forum.ehlib.com/en/viewtopic.php?f=6&t=1021
Page 1 of 1

Author:  zhouying82 [ 09 Feb 2020, 08:44 ]
Post subject:  fix the record?

Ehlib is a best components for the delphi .But now I found a question.
I used the dbgrideh to show the record,I want to fix the current record when the scrollbar rolls,but I'm not find the options.Can you tell me ?
Tks

Author:  EhLibSupport [ 10 Feb 2020, 18:29 ]
Post subject:  Re: fix the record?

Hello

It's not completely clear what you mean by wicks.
You can describe your question in other words.

If you want to position the current record you should use DataSet.RecNo property.

Code:
procedure TForm1.Button6Click(Sender: TObject);
begin
  MemTableEh1.RecNo := 5;
end;

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/