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

Combobox inside radgridview notworking

1 Answer 97 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:38 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

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 18 Nov 2009, 05:12 PM
Hello Feroz,

Thank you for contacting us.

This code looks OK and it should work. Please describe in detail the desired behavior and send us your application in a new support ticket. This will help us understand your requirements and find the best option.

Thank you for your understanding. I am looking forward to your reply.
 

Best wishes,
Jack
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.
Tags
GridView
Asked by
Feroz
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or