Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bindingcontext and determining Position

Status
Not open for further replies.

CrashDome

Technical User
Jan 7, 2002
86
US
I have a treeview control which lists information based on rows in a datatable (with some as child nodes).

I would like to navigate the position based on the user selected node.

For example:
(Assume a treeview with nodes that are tagged with the PK value)

//POINT A
dataSet.Tables["TABLE"].Rows.Find(treeView.SelectedNode.Tag);
//will find the row in the dataTable...

//POINT B
this.BindingContext[dataSet,"TABLE"].Position = unknownInteger;
//will set the selected row based off an integer index number

now how do I "Find" the index value of where that row is so I can get from POINT A to POINT B??
Is this really simple and I am just missing something?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top