62,268
社区成员
发帖
与我相关
我的任务
分享
<EditItemTemplate>
<asp:DropDownList ID="DropDownList_CType" runat="server" SelectedValue='<%# Bind("CType") %>'>
<asp:ListItem Value="0">标准机</asp:ListItem>
<asp:ListItem Value="1">微型机</asp:ListItem>
</asp:DropDownList>
</EditItemTemplate>
for (int i=0;i<count;i++)
{
if (table.Rows[i]["CType"]==null)
{
table.rows[i]["CType"]="2";
}
}
<EditItemTemplate>
<asp:DropDownList ID="DropDownList_CType" runat="server" SelectedValue='<%# Bind("CType") %>'>
<asp:ListItem Value="2">未知</asp:ListItem>
<asp:ListItem Value="0">标准机</asp:ListItem>
<asp:ListItem Value="1">微型机</asp:ListItem>
</asp:DropDownList>
</EditItemTemplate>
<EditItemTemplate>
<asp:DropDownList ID="DropDownList_CType" runat="server" SelectedValue='<%# Bind("CType") %>' AppendDataBoundItems="true">
<asp:ListItem Value="" Enabled="false">空</asp:ListItem>
<asp:ListItem Value="False">标准机</asp:ListItem>
<asp:ListItem Value="True">微型机</asp:ListItem>
</asp:DropDownList>
</EditItemTemplate>