GridView 模板列 参数

    <asp:TemplateField HeaderText="性别">
                        <ItemTemplate>
                            <%#DataBinder.Eval(Container.DataItem, "性别")%>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <asp:DropDownList ID="性别" runat="server" Width ="40px"
                                Text='<%#DataBinder.Eval(Container.DataItem,"性别") %>'>
                                <asp:ListItem Value="男">男</asp:ListItem>
                                <asp:ListItem Value="女">女</asp:ListItem>
                                <asp:ListItem Value=""></asp:ListItem>
                            </asp:DropDownList>
                        </EditItemTemplate>
                        <ItemStyle Width="20px" />                    
                    </asp:TemplateField>

posted @ 2017-06-01 09:19  阿日斯兰  阅读(190)  评论(0编辑  收藏  举报