Mapping Datagrid to Datasource Row

H

Hex @dezimal

Using the CurrentRowIndex of a datagrid how can I found the matching row in
its datasource ( a dataset)?

Hex.
 
H

Hex @dezimal

I solved this problem by using the CurrencyManager:
Dim objCurrencyManager As CurrencyManager =
CType(BindingContext(objDataGrid.DataSource, objDataGrid.DataMember),
CurrencyManager)

column_value = CType(objCurrencyManager.Current,
DataRowView).Item("column_name")

Hex.
 

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

Top