Hi
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)
AD
Administrator
Syncfusion Team
May 10, 2005 06:14 PM UTC
Instead of using the .CellValue, try using .FormattedText.
AD
Administrator
Syncfusion Team
May 10, 2005 08:07 PM UTC
Perfect, thanks