<asp:DataGrid ID="user" runat="server" HeaderStyle-BackColor="#E0F6E1" AlternatingItemStyle-BackColor="#E0F6E1"
AutoGenerateColumns="false" DataKeyField="user_id" Width="550px" CellPadding="2" CellSpacing="0"
ItemStyle-HorizontalAlign="Left" OnEditCommand="edit" OnUpdateCommand="update" OnCancelCommand="cancel">
<Columns>
<asp:EditCommandColumn ButtonType="LinkButton" UpdateText="修改" CancelText="取消" EditText="编辑">
<HeaderStyle Wrap="false" />
<ItemStyle Wrap="false" />
<FooterStyle Wrap="false" />
</asp:EditCommandColumn>
<asp:TemplateColumn HeaderText="用户账号">
<ItemTemplate><asp:Label ID="name" Text='<%# DataBinder.Eval(Container.DataItem,"user_name") %>'
runat="server"/></ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="用户密码">
<EditItemTemplate><asp:TextBox ID="pass" runat="server" TextMode="Password" /></EditItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="用户权限">
<ItemTemplate><asp:Label ID="power" runat="server" /></ItemTemplate>
<EditItemTemplate>。。。。
</EditItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="删除"
HeaderStyle-Width="40px">
<ItemTemplate>
<asp:CheckBox ID="sel" runat="server" />
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:DataGrid>