S
Sol Fried
I posted this on framework.adonet but was hoping that someone in this forum
might also have an answer.
I have a TreeView which I populate with a dataset by using code like this...
foreach (DataSet1.CUSTUMERRow dr in myDataSet.CUSTOMER.Rows) {
node = treeView1.Nodes.Add(dr.NAME);
node.Tag =dr;
}
I also have several textboxes on the form that are bound to fields in
DataSet1.CUSTOMER.
I am trying to have those fields updated with the correct information
whenver a TreeView item is selected. I thought that by keeping a reference
to each dataRow in the tree node itself, I would be able to use it to
somehow move the 'Current Record' pointer so that the other Bound fields are
updated. I have tried using the CurrencyManager but cannot get that to work.
I can use the dataRow reference to manually update the fields and then
reapply the updates, but would rather use bound fields.
Any ideas would be greatly appreciated.
Thanks,
Sol
might also have an answer.
I have a TreeView which I populate with a dataset by using code like this...
foreach (DataSet1.CUSTUMERRow dr in myDataSet.CUSTOMER.Rows) {
node = treeView1.Nodes.Add(dr.NAME);
node.Tag =dr;
}
I also have several textboxes on the form that are bound to fields in
DataSet1.CUSTOMER.
I am trying to have those fields updated with the correct information
whenver a TreeView item is selected. I thought that by keeping a reference
to each dataRow in the tree node itself, I would be able to use it to
somehow move the 'Current Record' pointer so that the other Bound fields are
updated. I have tried using the CurrencyManager but cannot get that to work.
I can use the dataRow reference to manually update the fields and then
reapply the updates, but would rather use bound fields.
Any ideas would be greatly appreciated.
Thanks,
Sol