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

[Solved] GridDropDownColumn

1 Answer 180 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Barbara
Top achievements
Rank 1
Barbara asked on 17 Apr 2008, 09:25 AM
Hi,

I am creating a dropdown in a grid with a three-level hierarchy. In my first level I am adding a dropdown box using the following code:

<radG:GridDropDownColumn DataField="SectionCategory" DataSourceID="SqlDataSource_SectionsCategory" HeaderText="SectionCategory" ListTextField="Name" ListValueField="ID" UniqueName="SectionCategoryID">
</radG:GridDropDownColumn>

Using the following datasource:

<asp:SqlDataSource ID="SqlDataSource_SectionsCategory" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"SelectCommand="SELECT ID, Name FROM Sections"></asp:SqlDataSource>

This is fine, but what I need to do is add an extra value to the dropdown that isn't in the database. I'm assuming this needs to be done in the code behind, but not sure how to go about doing it. Could you please give me some idea of how to go about doing this?

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 18 Apr 2008, 03:46 PM
Hi Barbara,

Please, review the possible options for Customizing/configuring the GridDropDownColumn outlined in the article below:

http://www.telerik.com/help/radcontrols/prometheus/?grdCustomizeConfigureGridDropDownColumn.html

Let us know if you need further assistance.

Kind regards,
Konstantin Petkov
the Telerik team

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