Get Row value of a DataTable

  • Thread starter Thread starter y
  • Start date Start date
Y

y

Hello,

When a user clicks on a listbox , I want to retrieve the
corresponding value from a dataset.

Since the DataSet's index and the Listbox index does not
match. I cant seem to retrive the correct value.

I have created a dataview that points to the row i am
looking for but I dont know how to get the columns value.

Any ideas?

thanks,

y
 
y,

You can pass the data view to the BindingManagerBase returned from the
BindingContext and it will return to you the current row that is selected in
the listbox.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top