A
a s
Hi everyone,
I have a BindingSource as a DataSource for my control, I have set DisplayMember and ValueMember properties, and I was wondering how can i get a value from a ValueMember field for a currently selected item?
I tried something like...
DataRowView datRow = (DataRowView)myBindingSource.Current
but from here on I'm stuck...I tried to use something like...
((DataRowView)myBindingSource.Current).Row["myColumn"]
But it didn't work...so I was wondering if I someone could guide me towards my solution, or some link with good explanation of BindingSource concept...
Thnx.
I have a BindingSource as a DataSource for my control, I have set DisplayMember and ValueMember properties, and I was wondering how can i get a value from a ValueMember field for a currently selected item?
I tried something like...
DataRowView datRow = (DataRowView)myBindingSource.Current
but from here on I'm stuck...I tried to use something like...
((DataRowView)myBindingSource.Current).Row["myColumn"]
But it didn't work...so I was wondering if I someone could guide me towards my solution, or some link with good explanation of BindingSource concept...
Thnx.