Best way is to Bind the text box also to the DataTable, and use
BindingContext to update the textbox when the combo is updated (best
solution)
You might also use a ValueMember property of the combobox, and set the
textbox's text property using this value member (like a primary key) in the
Combo's changed event.
Ranjan
--
http://dotnetjunkies.com/weblog/dotnut
"Paul Aspinall" <(E-Mail Removed)> wrote in message
news:wq4Jd.210234$(E-Mail Removed)...
> Hi
> I have a datatable which I have linked to a combo control, via the
> datasource property of the combo control.
>
> I have also set the displaymember property of the combo, to ensure that my
> description is shown in the combo.
>
> However, I want to have another value of the same row of the datatable (as
> selected in the combo), displayed in a text box. ie. so that when I change
> the value in the combo, a text box displays a value from another field in
> the same datarow.
>
> Can anyone offer any tips, or code samples?
>
> Thanks
>
>