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.
Unfortunately, activation email could not send to your email. Please try again.

SelectedValue error

Thread ID:





14470 May 27,2004 08:32 AM May 28,2004 07:48 AM Windows Forms 1
Tags: GridControl
Steli Andrei
Asked On May 27, 2004 08:32 AM

Hi, I have a ComboBoxExt (cboCustomerName) and as a ListControl I do a GridListControl (grdCustomerNames) which has two columns (CustomerId, CustomerName). The problem that I have is that if I type something in the combo box and then I want to retrieve the SelectedValue with intCustomerID = Me.cboCustomerName.ListControl.SelectedValue.ToString), I do get an error. If I select a Customer from the list (using the mouse) then it works OK. Is there any property that I need to set, or a fix to this problem ? Thank you !

Administrator [Syncfusion]
Replied On May 28, 2004 07:48 AM

There is a method you can call to force the selected index to be updated. So, try calling this method before you try to use the selected index. comboBoxBase1.UpdatePopupControl()


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.

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.