Populate GridViewComboBoxColumn with dataset

2 posts, 0 answers
  1. ISB-developer
    ISB-developer avatar
    21 posts
    Member since:
    Jul 2011

    Posted 07 Nov 2011 Link to this post


    I am trying to populate a column from a RadGridView with values from a dataset in this way:

    Dim datListProps As New DataSet

    Dim sql As string = " SELECT gala_id_val_table FROM gala_mainTable "  

        AdaptSql = New OleDb.OleDbDataAdapter(sql, ConPubs)

        AdaptSql.Fill(datListProps, "props_table")



    ... and I connot find the proper way for making this.
    I have attached also a picture with waht I can see on the GridViewComboBoxColumn cell

    Can you hel me please
  2. Julian Benkov
    Julian Benkov avatar
    1135 posts

    Posted 10 Nov 2011 Link to this post

    Hi Isb-Developer,

    To setup the GridViewComboBox column to use DataSource, you must set the DisplayMember, ValueMember and FieldName properties. More information of GridViewComboBoxColumn you can find in our online documentation.

    I hope this information is useful. Let me know if you need further assistance.

    Kind regards,
    Julian Benkov
    the Telerik team

    Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.

Back to Top