M
Mark
I'm using TemplateColumns in a datagrid to allow a record to be edited. The
record contains several columns that are dropdownlists that pull from
"dictionary/ code-decode" tables. However, these columns are NOT required
in the underlying table. Given that I'm using TemplateColumns, what is the
best way to allow a user to leave the drop down list unselected? Or is
there another approach I should be taking?
Thanks in advance!
Mark
<asp:TemplateColumn HeaderText="Rank">
<ItemTemplate>
<asp:Label id="lblRank" Text='<%# DataBinder.Eval(Container,
"DataItem.rank_descr")%>' Runat="server"/>
</ItemTemplate>
<EditItemTemplate>
<aspropDownList id="ddlrank" Runat="server" DataValueField="rank_cd"
DataTextField="rank_descr" DataMember="rank_cd" DataSource="<%#
GetRankTable() %>"/>
</EditItemTemplate>
</asp:TemplateColumn>
record contains several columns that are dropdownlists that pull from
"dictionary/ code-decode" tables. However, these columns are NOT required
in the underlying table. Given that I'm using TemplateColumns, what is the
best way to allow a user to leave the drop down list unselected? Or is
there another approach I should be taking?
Thanks in advance!
Mark
<asp:TemplateColumn HeaderText="Rank">
<ItemTemplate>
<asp:Label id="lblRank" Text='<%# DataBinder.Eval(Container,
"DataItem.rank_descr")%>' Runat="server"/>
</ItemTemplate>
<EditItemTemplate>
<aspropDownList id="ddlrank" Runat="server" DataValueField="rank_cd"
DataTextField="rank_descr" DataMember="rank_cd" DataSource="<%#
GetRankTable() %>"/>
</EditItemTemplate>
</asp:TemplateColumn>