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

[Solved] Adding a Telerik drop down dynamically to a Telerik grid

1 Answer 101 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Brendan Vogt
Top achievements
Rank 1
Brendan Vogt asked on 19 Jun 2008, 09:40 AM
Hi,

I need to add a Telerik drop down to a Telerik grid at run time.  How do I do this in C#?

I am populating my grid like this, it has 3 columns:

// Column headings
dt.Columns.Add(new DataColumn("Client"));
dt.Columns.Add(new DataColumn("Invoice No"));
dt.Columns.Add(new DataColumn("Action"));

I populate my rows like this (only for test puposes for now):

// Rows
dt.Rows.Add(new object[] { "12345", "123" });
dt.Rows.Add(new object[] { "23456", "234" });

As you will see it only adds for column 1 and 2.  Column 3 needs a Telerik drop down.  How do I add it dynamically?

Thanks
Brendan

1 Answer, 1 is accepted

Sort by
0
Rosi
Telerik team
answered on 20 Jun 2008, 04:46 PM
Hello Brendan,

Could you please clarify what you want to do dynamically? To add a column to the grid or to add ComboBox to the column of RadGrid?

I suggest you read the following articles describing how you can add columns programmatically - Using columns and Programmatic creation.

Also you can use DropDownColumn of RadGrid. More about it you can read here

Hope this helps.

Regards,
Rosi
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
ComboBox
Asked by
Brendan Vogt
Top achievements
Rank 1
Answers by
Rosi
Telerik team
Share this question
or