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

Populate GridViewComboBoxColumn with dataset

1 Answer 97 Views
GridView
This is a migrated thread and some comments may be shown as answers.
ISB-developer
Top achievements
Rank 2
ISB-developer asked on 07 Nov 2011, 03:08 PM
Hi,

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

 

Me.tabelaVotRadGridView.Columns.Add(lookUpColumn)



... 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

1 Answer, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 10 Nov 2011, 11:00 AM
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.

Tags
GridView
Asked by
ISB-developer
Top achievements
Rank 2
Answers by
Julian Benkov
Telerik team
Share this question
or