G
Guest
Hello,
I've been working with the Windows Forms datagrid, and can't seem to figure
out how to get the currently selected row when dealing with objects that have
a Hierachy.
For example we have a recursive tree like structure that consists of
DecisionMakers. The objects we are dealing with in this case are the
following
a.) DecisionMakerCollection Class
b.) DecisionMaker class.
The DecisionMaker class conains the following Information.
1.) string - ContactName
2.) DecisionMakerCollection - Children
How can I get the current selected row, if I've used the navigation links on
the datagrid to go down x levels?
I have seen code similar to this, but it only seems to return the last row
you were working with at the Top level of the hierachy.
CurrencyManager currencyManager
=(CurrencyManager)this.dataGridDecisionMakers.BindingContext[_decisionMakers];
OpportunityDecisionMaker decisionMaker =
(DecisionMaker)CurrencyManager.Current;
Can someone point me in the right direction?
Thanks,
Charlie
I've been working with the Windows Forms datagrid, and can't seem to figure
out how to get the currently selected row when dealing with objects that have
a Hierachy.
For example we have a recursive tree like structure that consists of
DecisionMakers. The objects we are dealing with in this case are the
following
a.) DecisionMakerCollection Class
b.) DecisionMaker class.
The DecisionMaker class conains the following Information.
1.) string - ContactName
2.) DecisionMakerCollection - Children
How can I get the current selected row, if I've used the navigation links on
the datagrid to go down x levels?
I have seen code similar to this, but it only seems to return the last row
you were working with at the Top level of the hierachy.
CurrencyManager currencyManager
=(CurrencyManager)this.dataGridDecisionMakers.BindingContext[_decisionMakers];
OpportunityDecisionMaker decisionMaker =
(DecisionMaker)CurrencyManager.Current;
Can someone point me in the right direction?
Thanks,
Charlie