This is a migrated thread and some comments may be shown as answers.

Accessing edit form controls in NestedViewTemplate

0 Answers 110 Views
Grid
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 07 Oct 2011, 12:21 PM
I have a hierarchical grid which has two layers of hierarchy, one of which contains a Nested Table View (i.e. one primary grid, followed by a child grid, which in turn has a child Nested Table View:

+ Primary grid
   |
   + Child hierarchy
      |
      + Child hierarchy in the form of a Nested Table View

Hope that makes it clear :)

The problem I have is that I have a cascading combo where one loads data following a user selection in the other. Because of potential errors where there's invalid data coming into the rebound combo, I'm having to rebind it in the codebehind. To do this, I'm trying to set up the rebind within the selected combo's SelectionChanged event.

Unfortunately as both combos are in the Nested Table View, I'm having problems working out how to access the combo I want to rebind since neither the 'sender' or EventArgs objects seem to contain enough information to allow me to easily find a path back to the editform. So what's the easiest method of finding a control within an editform in a Nested Table View that's in a hierarchical grid?

No answers yet. Maybe you can help?

Tags
Grid
Asked by
David
Top achievements
Rank 1
Share this question
or