Loading the data into Combo Box...

4 posts, 0 answers
  1. Jeffrey
    Jeffrey avatar
    5 posts
    Member since:
    Jun 2012

    Posted 23 Aug 2012 Link to this post

    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.
  2. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 27 Aug 2012 Link to this post

    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 >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Jeffrey
    Jeffrey avatar
    5 posts
    Member since:
    Jun 2012

    Posted 30 Aug 2012 Link to this post

    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.
  5. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 03 Sep 2012 Link to this post

    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 >>
Back to Top