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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Retrieving the text of a combobox in a DBG

Thread ID:





28777 May 10,2005 05:05 PM UTC May 10,2005 08:07 PM UTC WinForms 2
Tags: GridControl
Administrator [Syncfusion]
Asked On May 10, 2005 05:05 PM UTC

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)

Administrator [Syncfusion]
Replied On May 10, 2005 06:14 PM UTC

Instead of using the .CellValue, try using .FormattedText.

Administrator [Syncfusion]
Replied On May 10, 2005 08:07 PM UTC

Perfect, thanks


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon