Datagrid Navigation event again

  • Thread starter Thread starter Puspak
  • Start date Start date
P

Puspak

Here is the scenario:
I have a hierarchical data grid. I click on expansion
sign on row (this row is not the currently selected row)
and then navigate to show the detals of that row.
Now is there a way to get the row on which I clicked to
navigate to the child-rows?
 
I think you'll need to call on the BindingContext[source,
table].Current.

This will return a DataRowView.
 
Thanks for your reply.
I created the currency manager like this:
CurrencyManager cm = (CurrencyManger) this.BindingContext
(MyDataSource, MyGrid.DataMember);
The Currency Manger actually corresponds to the child
records. I can't get to the parent record. Well, I can if
there is any record in the child view, but if there's no
row, (a new line), then I can't get a parent row.
The irony is, MS grid somehow know it, because it shows
the parent row in the grid header.
I would appreciate if someone can give some insight into
the matter.

-----Original Message-----
I think you'll need to call on the BindingContext [source,
table].Current.

This will return a DataRowView.
-----Original Message-----
Here is the scenario:
I have a hierarchical data grid. I click on expansion
sign on row (this row is not the currently selected row)
and then navigate to show the detals of that row.
Now is there a way to get the row on which I clicked to
navigate to the child-rows?
.
.
 
Back
Top