473,407 Members | 2,306 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,407 software developers and data experts.

3 Datagridviews bound

Hi,
I have three datagridview controls bound to three tables in a dataset. Two
relations exist to join the three tables. Ie Master to Child1 and then Child
1 to Child 2.
The Master and Child 1 DataGridView (DGV) work fine with the rows changing
in Child1 to relect the Master. But...
The 3rd DGV (Child 2) lists data for the first row of Child 1 and does not
change when Child 2 data changes. Ok I know I am doing something wrong, but
what? Any help would be appreciated.

ps I am making sure that all have the same binding context by explicitly
setting even though it gets it from the container.
--
Big thank you for your help.
Nov 7 '07 #1
1 1250
Ade,

When you are binding to child tables, and only want to see the related
records for the selected record in the parent table, you need to bind to the
DataRelation, and not the child DataTable.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Ade" <ad*@nospam.nospamwrote in message
news:B2**********************************@microsof t.com...
Hi,
I have three datagridview controls bound to three tables in a dataset. Two
relations exist to join the three tables. Ie Master to Child1 and then
Child
1 to Child 2.
The Master and Child 1 DataGridView (DGV) work fine with the rows changing
in Child1 to relect the Master. But...
The 3rd DGV (Child 2) lists data for the first row of Child 1 and does not
change when Child 2 data changes. Ok I know I am doing something wrong,
but
what? Any help would be appreciated.

ps I am making sure that all have the same binding context by explicitly
setting even though it gets it from the container.
--
Big thank you for your help.

Nov 7 '07 #2

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

Similar topics

4
by: Aaron Ackerman | last post by:
I am using typed datasets in an N-Tier Windows app using VB.NET. I know this posting cannot be fully explained in a single post that is why I am asking for someone to point me to a real world...
19
by: James Fortune | last post by:
I have a lot of respect for David Fenton and Allen Browne, but I don't understand why people who know how to write code to completely replace a front end do not write something that will automate...
2
by: jpenn44 | last post by:
I have multiple datagridviews on one form. I am allowing editing in the grid, and am performing error checking. I am validating the data, if it isn't valid, I am cancelling any other events...
2
by: Mike Fellows | last post by:
Hi, Im populating a datagridview with a dataset using datagridview.datasource = dataset.tables(0) and this works fine in most cases, except when my dataset has multiple lines of text in a...
0
by: Susan Mackay | last post by:
I have an application that works well, with two DataGridViews connected with the necessary BindingSources, DataTables etc to have one DataGridView act as the parent and the other as the child in...
3
by: TomH | last post by:
I am using VB within VS 2005. How can I have multiple datagridviews on the same form pulling from the same table? e.g. I want to see all clients from New York in one view and all clients from LA in...
5
by: jjsavage | last post by:
Hi all, I've got a DataGridView bound to a DataTable, and I need to make some of the columns into ComboBoxColumns. I've tried some of the solutions listed here, but I can't seem to make them...
1
by: David Costello | last post by:
Hello everyone, It would appear I'm trying to do something that's completely undocumented. I can't find anything of any use online to help me with this... I'm working on developing an MSSQL query...
0
by: Chris | last post by:
I have two datagridviews on a form that are linked via a datarelation. I am using: "foreach ( DataGridViewRow tripRow in scenario_TripsDataGridView.Rows )" to loop thru all the rows in the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.