473,585 Members | 2,512 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Data grid control

I create form with master detail relation ship. It shows two data grid
control. I want to remove one. I want to use one grid control by which
i can add delete data in both tables.

Thanks,

Aug 13 '06 #1
2 6790
It is not clear here, but by two controls...do you mean two columns of
display, or is there in fact
two actual "grid" displays.

I *often* use two sub-forms to display "many" of the "one" side of a
relation on the left side of the screen,
and then on the right side show many for each of what is selected on the
left side.

Here is some screen shots of what I mean:

http://www.members.shaw.ca/AlbertKal...icles/Grid.htm

the above might give you some good ideas. The last screen shot is a classic
example of splitting out cheque funds for a given person to multiple
accounts.

However, if you want data from both tables to be shown on a single grid, the
build a query that joins the two tables together, and then build a continues
form based on that query.
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl************* ****@msn.com
Aug 14 '06 #2
I am sorry. I mean it shows 2 data controls. One for main form and the
other for subform. Is it possible i use one control to add, delete edit
data in both.

Thanks,
Albert D. Kallal wrote:
It is not clear here, but by two controls...do you mean two columns of
display, or is there in fact
two actual "grid" displays.

I *often* use two sub-forms to display "many" of the "one" side of a
relation on the left side of the screen,
and then on the right side show many for each of what is selected on the
left side.

Here is some screen shots of what I mean:

http://www.members.shaw.ca/AlbertKal...icles/Grid.htm

the above might give you some good ideas. The last screen shot is a classic
example of splitting out cheque funds for a given person to multiple
accounts.

However, if you want data from both tables to be shown on a single grid, the
build a query that joins the two tables together, and then build a continues
form based on that query.
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl************* ****@msn.com
Aug 14 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2333
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 visual representation of data. Two types of data binding are available for Windows Forms: Simple Data Binding and Complex Data Binding. Simple...
1
1484
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 exposing interfaces for other methods to pass me the data that needs to be displayed. In such a case is the data grid the best control to use in .NET?...
0
1117
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 with check boxcontrol. I am able to trace the click of the check box controlthru the data grid clicked event,datagrid cell changed event.now i want to...
2
2210
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 "*****" at which the categoryName always get the past value no matter what it has been changed. How do I fix it? Thanks. Joe. Private Sub...
1
2185
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 control in the data list. Best Regards Shahid Saleem *** Sent via Developersdex http://www.developersdex.com ***
12
1456
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 my data grid display on a tab control? I have a tab control with 2 tabs on it, one for the data grid and the other for comments. I have tried...
6
3133
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 identifier, I would like a dropdown combo box (lookup from the "order_type" table) to change the type of the order. I also need an update command...
1
2095
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 DataSource property to the BindingSource control, which the Data Source Configuration Wizard created for me. The data binding works fine when I run...
7
28348
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 control. Then used the following code to populate the data control ...and thus, the grid: With datPos
1
2238
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 if i double click on combo box then only it is displaying the items. Can anybody please help me to resolve the problem showing combo box items in...
0
7908
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7836
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8199
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8212
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6606
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5389
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3863
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2343
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1175
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.