Barry,
Unfortunately, there is no Bindings property to do this with. You will
have to set the values (or a class to do it) manually.
--
- Nicholas Paldino [.NET/C# MVP]
-
(E-Mail Removed)
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> I have a tree view which contains a number of nodes which correspond
> to a set of objects, as follows -
>
> class Address
> {
> int postCode;
> sting[2] abbreviation;
> }
>
> class Person
> {
> string[] name;
> Addressaddress;
> }
>
> Person[2] person;
>
> TreeView:
>
> + Name: Barry
> + Address: BH 91001
>
> + Name: John
> + Address: CL 11002
>
> I'd like to be able to click on a node in my treeview and then edit
> its value. To bind to a testbox you can do something like this -
>
> textBox1.DataBindings.Add(new Binding("Text", person[0], "State"));
>
> but what about a Node in a text field?
>
> Any suggestions,
>
> Thanks,
>
> Barry.
>