I have a databound grid which has a couple of comboboxes which map to the id in the datatable.
In the RowLeave event, I want to update a couple of the columns in the datatable with the actual text in the combobox (it''s used later in the application, last minute change by the client)
Currently I have this
Dim cm As CurrencyManager = Me.BindingContext(Me.gridDBICincome.DataSource, Me.gridDBICincome.DataMember)
Dim dr As DataRow = CType(cm.Current, DataRowView).Row
dr("CLIENT") = CStr(Me.gridDBICincome.Model(cc.RowIndex, 1).CellValue)
but obviously the cellvalue is the actual datavalue.
How to I go about getting associated DataMember value?
(The alternative is to get it from the datatable of the combobox but thought this may be more efficient)