G
Guest
I have a WinForm ComboBox that is populated by binding to a dataset that
contains a list of employees (two columns: 1. employee id, 2. employee name).
The id is bound to the ValueMember, the name to the DisplayMember. The
dataset is then disposed.
When an item is selected from the combobox, the value is easy to get. Yet
when I try to capture the selected text I get a "DataRowView" back. I've
tried to work my way through the DataRowView but I keep hitting a wall. Is
there a simple way to access the selected DisplayMember? It shouldn't be this
difficult.
Thank you
contains a list of employees (two columns: 1. employee id, 2. employee name).
The id is bound to the ValueMember, the name to the DisplayMember. The
dataset is then disposed.
When an item is selected from the combobox, the value is easy to get. Yet
when I try to capture the selected text I get a "DataRowView" back. I've
tried to work my way through the DataRowView but I keep hitting a wall. Is
there a simple way to access the selected DisplayMember? It shouldn't be this
difficult.
Thank you