Home > Back-end >  DBGrid record how to display the specified number of records?
DBGrid record how to display the specified number of records?

Time:10-12

DBGrid connected our database, and now I want to show that specify the record number of records,
For example, in the form according to article 5 record this a record, can you tell me how to implement?

CodePudding user response:

Can filter the data set

CodePudding user response:

How to filter, I here is not using field content for a condition, but the record number=n as the condition, how to write the filter conditions?

CodePudding user response:

No one knows how to write? Your top up,

CodePudding user response:

refer to the second floor zcwthy response:
how to filter, I'm not using field content for a condition, but the record number=n as the condition, how to write the filter conditions?

You this is in relative terms, prone to errors, or with its ID or other field to filter,
If as long as the table 5 records, or use it ID field to filter or another table in SQL statements,

CodePudding user response:

Article 5 the data in the database only display?
Assume the table called tablename, the only key to a

Select * from tablename
Adoq. First;
Adoq. Next;
Adoq. Next;
Adoq. Next;
Adoq. Next;

Select * from tablename where a=adoq [' a ']
Adoq. Open
(need to display the DBGrid adoq)
  • Related