效果图
<asp:GridView ID="GridView" runat="server" AutoGenerateColumns="False" DataKeyNames="RECORD_ID,SEQ"
BorderColor="Gray" BorderStyle="Solid" BorderWidth="1px" CellPadding="3"
EmptyDataText="No data." Font-Size="9pt" HorizontalAlign="Left"
Style="left: 34px; top: 240px" Width="98%"
onrowdatabound="GridView_RowDataBound"
onrowdeleting="GridView_RowDeleting" >
<EmptyDataRowStyle BackColor="LightYellow" BorderColor="Black" BorderStyle="Solid"
BorderWidth="1px" ForeColor="Black" />
<RowStyle BackColor="LightYellow" ForeColor="Gray" />
<AlternatingRowStyle BackColor="White" ForeColor="DimGray" />
<Columns>
<asp:TemplateField ShowHeader="False">
<ItemTemplate>
<asp:LinkButton ID="lnkDel" runat="server" CausesValidation="False" CommandName="Delete"
Text="删除" OnClientClick='<%# "if (!confirm(\"你确定要删除吗?\")) return false;"%>'></asp:LinkButton>
</ItemTemplate>
<ItemStyle Width="40px" />
</asp:TemplateField>
<asp:BoundField DataField="RECORD_ID" Visible="False">
</asp:BoundField>
<asp:BoundField DataField="SEQ" HeaderText="序号">
<HeaderStyle Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
<ItemStyle Width="30px" />
</asp:BoundField>
<asp:BoundField DataField="ZHONGXIN" HeaderText="中心">
<HeaderStyle Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
<ItemStyle Width="70px" />
<HeaderStyle Width="70px" />
</asp:BoundField>
<asp:BoundField DataField="BUMEN" HeaderText="部门">
<HeaderStyle Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
<ItemStyle Width="70px" />
<HeaderStyle Width="70px" />
</asp:BoundField>
<asp:BoundField DataField="XINGMING" HeaderText="姓名">
<HeaderStyle Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
<ItemStyle Width="70px" />
<HeaderStyle Width="70px" />
</asp:BoundField>
<asp:BoundField DataField="GONGHAO" HeaderText="工号">
<HeaderStyle Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
<ItemStyle Width="70px" />
<HeaderStyle Width="70px" />
</asp:BoundField>
<asp:BoundField DataField="GANGWEI" HeaderText="岗位">
<HeaderStyle Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
<ItemStyle Width="90px" />
<HeaderStyle Width="90px" />
</asp:BoundField>
<asp:TemplateField HeaderText="">
<HeaderStyle Wrap="False" VerticalAlign="Middle" />
<ItemStyle Width="60px" />
<ItemTemplate>
<table>
<tr>
<td style="bor