Data relation binding between treeview and listbox

Joined
Jan 10, 2007
Messages
43,898
Location
In The Machine
This is a C# 2.0*Win Forms app.
I have my dataset filling a treeview, and that works great. I have a list view that I want to bind to a child table.

I know I can't automatically bind the treeview to the relationship. I'd like to do something where I find the row in the parent table using code, and have the listbox reflect based on the relationship.

On the treeview.afterselect event I'm trying this:
currentProjectData.SectionDocuments.ParentTable.FindByProjectSectionID(sectionRow.ProjectSectionID).BeginEdit();

But that doesn't seem to trigger the listbox to refresh.

I'm probably trying this the wrong way. Any ideas?


More...

View All Our Microsft Related Feeds
 
Back
Top