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

GridViewComboBoxColumn not working

2 Answers 16 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Feroz
Top achievements
Rank 1
Feroz asked on 17 Nov 2009, 02:23 PM
Hi
I am trying to get a combobox inside the radgridview. Below code doesnt seem to work. Any help would be appreciated

   Dim farmer As New UI.GridViewComboBoxColumn()
            farmer.DataType = GetType(String)
            farmer.UniqueName = "UserID"

            farmer.HeaderText = "Farmer"
            farmer.DataSource = GetFarmerDataSource()
            farmer.DisplayMember = "UserID"
            farmer.ValueMember = "UserCode"
            farmer.FieldName = "UserID"
            farmer.Width = 150


            rgvBill.MasterGridViewTemplate.Columns.Add(farmer)


            Dim Bags As New UI.GridViewTextBoxColumn()
            Bags.DataType = GetType(Int32)
            Bags.UniqueName = "Bags"
            Bags.FieldName = "Bags"
            Bags.HeaderText = "Bags"
            Bags.Width = 50
            rgvBill.MasterGridViewTemplate.Columns.Add(Bags)


My radgrid at design time has no columns defined

2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 17 Nov 2009, 02:32 PM
Hello,

I believe that this is related to our WinForms grid not to our WPF grid.

Best wishes,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Feroz
Top achievements
Rank 1
answered on 17 Nov 2009, 02:36 PM
Yes. That is WinForm
Tags
GridView
Asked by
Feroz
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Feroz
Top achievements
Rank 1
Share this question
or