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

Parent-Child DataGridViews and how to tell when the parent recordchanges

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 the standard way.

Whenever the parent record changes, the data displayed in the child
DataGridView changes appropriately. However the first record in the child
DataGridView is always highlighted as the 'current record' and I would like
to have the last record so highlighted (there are other text boxes that hang
off the child DataGridView/BindingSource) so that the 'latest' information
is displayed. (For various reasons, I can't just display the child records
in reverse order - that would be too easy!!!! - Sigh!)

I've tried looking for appropriate events on the DataGridView and the
BindingSources, but I can't find anything that reliably lets me set the
child view to display the last record.

Is there a way to highlight the last row (or even just one of the cells in
the row) in the child display whenever the record in the parent display is
changed?

Thanks

Susan

Aug 26 '06 #1
0 1361

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

Similar topics

2
by: Richard Bell | last post by:
Newbie question ... please respond to group I'm trying to open/navigate to a url. How can I tell when the page is fully loaded? Testing suggest that window.open returns before the page is...
3
by: DJTN | last post by:
I have created 2 vb.net applications in VS 2002, a server and a client using the .net.sockets namespace. I can connect and receive data fine but the client cannot tell when it has recived all the...
16
by: jaialai technology | last post by:
I want to reload a url in a browser window so I do something like this: open(window.location.href= "www.yahoo.com"); ok, so now I want to do something when that page is done loading completely....
2
by: newsgroper | last post by:
I set the AutoScroll property of a windows panel to true. How can I tell when the scrollbar becomes visible?
5
by: Steven Thomas | last post by:
I have an application that creates mutliple thread like this: My code: > ------------------------------------------------------------------------- > Private Sub StartGPReportServer() > ...
1
by: UJ | last post by:
Is there any way with the Shockwave object to tell when a SWF file has finished playing? It would be nice if there was an event like in the Media Player that is called when the state changes. ...
1
by: zEE | last post by:
How to close all the child windows when parent window get closed? in ASP.net application through scripting..
7
by: UJ | last post by:
Is there a way to tell when something was compiled? (I'm trying to find a way to keep track of what 'version' the web site is and can't find anything that only changes when it's recompiled.) TIA...
7
by: Adam | last post by:
Hello, I want to know if it possible to tell when a file is opened. However I don't want it to be the last access time. I want to know how many times a file opened so I can generate statistics...
2
by: jlparise | last post by:
Hey everyone, I am really rusty on my Java socket programming and am having some confusing problems. I don't need the code debugged(even though it doesn't work). I'm not going to make you dig...
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: 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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.