473,396 Members | 2,108 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

data grid control in vb6.0

9
i want to know how to use data grid control to retrieve data from two different table.
where one table contain reference of other table. i.e. i have two tables like result and administrator. Now there is result_id in administrator table which is a primary key of result table ,now i want to show percentage from result table and all the fields from administrator table in one data environment.
Sep 27 '07 #1
4 10083
Ali Rizwan
925 512MB
i want to know how to use data grid control to retrieve data from two different table.
where one table contain reference of other table. i.e. i have two tables like result and administrator. Now there is result_id in administrator table which is a primary key of result table ,now i want to show percentage from result table and all the fields from administrator table in one data environment.
Ok
# Tell me which version of vb you are using
# Are you using ADO or any other or simple data
If you are using ADO and access then definately you want to make a link betweeen them. OK
Then I ll send you an example as you required.
One thing more if you want to see the both tables on a single grid or on two grids.
Answer these and i ll send you the example.
Examle helps you a lot instead of gib=ving you code here.
Waiting just for you
Sep 27 '07 #2
Hi there.
Would you like to give me the source code as well?
I got a study assignment from my lecturer to make a datagrid display data from two tables, let's say Ms_Customer and Tr_Customer.
I need to choose the customer id from Ms in datagrid (probably I'm gonna use combo box to choose the id) and show the total of purchasing from its customer in Tr. All data need to be on datagrid.
I'm using VB6 and ADODB.
Thanks in advance.
Nov 27 '07 #3
debasisdas
8,127 Expert 4TB
Hi there.
Would you like to give me the source code as well?
I got a study assignment from my lecturer to make a datagrid display data from two tables, let's say Ms_Customer and Tr_Customer.
...
We are not here to supply you with free code and do your assignments.

Please follow the posting guidelines.
Nov 27 '07 #4
We are not here to supply you with free code and do your assignments.

Please follow the posting guidelines.
Sorry, just i read the post before that he/she has the source code of the question and i have the same question as well.
I didnt ask to do my assignments, that just one part i dont understand so that i asked to get the answer.
So how to retrieve 2 tables and show it in datagrid?
Thanks
Nov 28 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Ann Morris | last post by:
INTRODUCTION One of the most powerful aspects of .NET and Windows Forms is data binding. Data binding is the process of associating user interface (UI) elements with a data source to generate a...
1
by: Ananth | last post by:
Hi, I have a question regarding data grids My application requires me to use a grid for displaying data, however I would not be using a database for procuring the data, instead I would be...
0
by: saira tst via .NET 247 | last post by:
(Type your message here) -------------------------------- From: saira tst hi, I have created a data grid control and populated the control,from an array list. The grid contains a column...
2
by: Joe Au | last post by:
I follow the Walkthrough documented on Visual Studio to create an editable data grid but it does not work on getting the value of the textbox in the data grid. The code is copied here. I mark...
1
by: Shahid Saleem | last post by:
Dear Members I want to generate a Template using DataList and i want to user Grid control in the item template, is it possible. if yes need some explanation regarding data binding of grid...
12
by: Kimberley Wiggins | last post by:
Can someone please help me? I am still learning vb so this is fairly new. I have been chasing this problem for 3 days now and I think that I am ready to give up. Does anyone know how to make...
6
by: Mike Wilson | last post by:
Dear Group, I have a heirarchical set of database tables, say - "order" and "order_type" and want to display a series of orders in a grid control, and in place of the order_type foreign key...
1
by: David Veeneman | last post by:
How do I get the data bindings for a control that is bound at design time? I'm binding a DataGridView control to a data source at design time, using a BindingSource control. I set the grid's...
7
by: Joe-Paul Robb, Jr. | last post by:
Hello: I am building a program in Visual Basic 6.0. (Op Sys: Windows XP 2002 Service Pack 2) I placed an AOD Data Control on a form...and a data Grid. I bound the data grid to the data...
1
by: pavanip | last post by:
Hi, I have a data grid control and I placed one combo box in that data grid and I am binding data to data grid combo box.When i run the application by default the combo box is not showing anything...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.