Solved

DBGrid

Posted on 2001-06-30
4
848 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

759 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

23 Experts available now in Live!

Get 1:1 Help Now