We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Retrieving the text of a combobox in a DBG

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)

2 Replies

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

Live Chat Icon For mobile
Up arrow icon