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