Solved

DBGrid

Posted on 2001-06-30
4
851 Views
Last Modified: 2008-02-26
my form has one table, one DataSource and one DBGrid. I made an alias which points to database.mdb. I choose this alias from table. datasource = table1. And DBGrid = datasource1. I have 5 records on my database. But my DBGrid shows 10 records. Which are also same as my 5 record.. How can i solve this?
0
Comment
Question by:systemop
  • 3
4 Comments
 
LVL 3

Expert Comment

by:alzv
ID: 6240555
Clear Table.DataSource property...

Best regards,
Alexey Zverev.
0
 
LVL 3

Accepted Solution

by:
alzv earned 50 total points
ID: 6240559
As the description (From Delphi Help):
Table.DataSource
Provides read-only access to the data source for the master dataset when this table is the detail of a master/detail relationship

So, if you have only one table, you do not need to set this property.

You need to set DataSource.DataSet property to Table and DBGrid.DataSource property to Table. Then, if you open your Table, you will see your 5 records in DBGrid...

Best regards,
Alexey Zverev.
0
 
LVL 17

Expert Comment

by:geobul
ID: 6240619
DBGrid.DataSource property to DataSource1 (not to Table1)

Regards, Geo
0
 
LVL 3

Expert Comment

by:alzv
ID: 6241325
Sorry, geobul... You are right... I was mistaken...

Best regards,
Alexey Zverev.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now