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

SelectedValue error

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 !

1 Reply

AD Administrator Syncfusion Team May 28, 2004 11:48 AM UTC

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()

Live Chat Icon For mobile
Up arrow icon