Hi,
i want to show in a textbox the value from a selected row in my datagridview.
DataSet dsHersteller = new DataSet();
BindingSource bsHersteller = new BindingSource();
dsHersteller = herstellermanager.GetList(); // - delivers a dataset
bsHersteller.DataSource = dsHersteller.Tables["producer"];
bsHersteller.Sort = "producer_id";
dgvHersteller.DataSource = bsHersteller.DataSource;
tbxHerstellerNr.DataBindings.Add("Text", bsHersteller, "producer_id");
Now, when i start the app, the value of the textbox is the first row in datagridview.
If i select another row, nothing changes in my textbox.
I thougt, i bound the textbox to the grid ??
Can anybody give me tips for my problem ?
By jogi
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.