This is a migrated thread and some comments may be shown as answers.

Loading the data into Combo Box...

3 Answers 97 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Jeffrey
Top achievements
Rank 1
Jeffrey asked on 23 Aug 2012, 07:53 AM
The combo boxes are attached to the stored procedures which get the data from the database.  But they still do not seem to get initialized.  In WinForms I guess we have to force the loading or initialization, what is the code for this.  Thanks in advance.

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 27 Aug 2012, 02:51 PM
Hello Jeffrey,

Thank you for contacting Telerik support.

Please, refer to this MSDN forum thread that demonstrates how to bind the ComboBox to a stored procedure.  In short you need to set these three properties: DataSource, ValueMember, and DisplayMember. For more information please read How to: Bind Data to RadControls for WinForms article.

I hope this helps.

Regards,
Peter
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
0
Jeffrey
Top achievements
Rank 1
answered on 30 Aug 2012, 07:52 PM
How can refresh when the underlying stored procedure has been modified.  Have had to make new data sources and then delete the old ones which is a pain in WinForm application.
0
Peter
Telerik team
answered on 03 Sep 2012, 08:38 AM
Hello Jeffrey,

Thank you for writing back.

If the source supports the IBindingList interface, the source will automatically update the control. Otherwise you should set the DataSource property to null and set again its value in order to update the control.

I hope this helps.

Regards,
Peter
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Tags
DropDownList
Asked by
Jeffrey
Top achievements
Rank 1
Answers by
Peter
Telerik team
Jeffrey
Top achievements
Rank 1
Share this question
or