Components for Delphi and C++ Builder.

Go to Russian forum
Go to EhLib.com
It is currently 28 Mar 2024, 15:53

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 22 Mar 2022, 08:26 
Offline

Joined: 15 Mar 2021, 16:33
Posts: 37
Hi

I have a problem in record number in DbgridEh( all are 1) (Pls find the attachment Pict)

Pls your advice

Regards


Attachments:
ehlib.jpg
ehlib.jpg [ 14.2 KiB | Viewed 527 times ]
Top
 Profile  
 
PostPosted: 22 Mar 2022, 09:34 
Offline

Joined: 08 May 2014, 18:06
Posts: 660
Hello

Check that your DataSet supports the correct value in the RecNo property.
Here is an example code to test.

Code:
procedure TForm1.Button3Click(Sender: TObject);
begin
  DBGridEh1.DataSource.DataSet.First;
  while not DBGridEh1.DataSource.DataSet.EOF do
  begin
    DBMemoEh1.Lines.Add(DBGridEh1.DataSource.DataSet.RecNo.ToString);
    DBGridEh1.DataSource.DataSet.Next;
  end;
  DBGridEh1.DataSource.DataSet.First;
end;

_________________
Best regards
EhLib Support Team


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 64 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group