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

Issue with Combo box

Thread ID:

Created:

Updated:

Platform:

Replies:

23908 Jan 24,2005 07:50 AM UTC Jan 24,2005 09:22 AM UTC WinForms 1
loading
Tags: GridControl
Rajesh
Asked On January 24, 2005 07:50 AM UTC

Hi, I am getting the values in the Combo box by the following code. If there is no items in the database it should display the empty list in the combobox but it shows the previous items again. I dont know where is the problem? item.Clear() Dim dsQuickCodes As DataSet dsQuickCodes = newQuickCodesMgr.getCodeByCategory("Category") For i As Integer = 0 To dsQuickCodes.Tables(0).Rows.Count - 1 item.Add(dsQuickCodes.Tables(0).Rows(i).Item("Name")) Next grdRelAcc.ColStyles(5).ChoiceList = item Thanks and Regards Rajesh

Administrator [Syncfusion]
Replied On January 24, 2005 09:22 AM UTC

I am not sure this will work, but you can try calling grdRelAcc.ResetVolatileData either before or after setting the new choicelist. If that does not work, then you can dynamically set dropdown lists by handling the CurrentCellShowingDropDown event. Here is a recent forum thread that has some sample code in it. http://64.78.18.34/Support/Forums/message.aspx?MessageID=23781

CONFIRMATION

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.

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

;