Gridview无数据时显示表头的问题
来源:互联网 发布:小额贷款管理系统源码 编辑:程序博客网 时间:2024/04/30 22:50
提供了个EmptyDataTemplate,可以把header的样式构造到里面去
<asp:GridView ID="grdvList" runat="server" AutoGenerateColumns="False" CssClass="DataGrid" Width="720px"
DataKeyNames="ROW_REF_ID" OnRowCommand="grdvList_RowCommand" AllowPaging="True" AllowSorting="True"
PageSize="5" OnPageIndexChanging="grdvList_PageIndexChanging" OnSorting="grdvList_Sorting">
<HeaderStyle CssClass="grid_head" />
<RowStyle CssClass="grid_row" />
<SelectedRowStyle CssClass="grid_row_selected" />
<Columns>
<asp:BoundField HeaderText="Action Code" DataField="ACTION_CODE" SortExpression="ACTION_CODE" >
<HeaderStyle Width="200px" />
</asp:BoundField>
<asp:BoundField HeaderText="Description" DataField="ACTION_DESCRIPTION" SortExpression="ACTION_DESCRIPTION" />
<asp:ButtonField HeaderText="Detail" CommandName="Detail" Text="<img src="../Images/BMG_icon_detail.GIF" alt='Detail'; border=0>" >
<HeaderStyle Width="45px" />
</asp:ButtonField>
<asp:ButtonField HeaderText="Delete" CommandName="InActive" Text="<img src="../Images/BMG_icon_delete.GIF" border=0; alt='delete'>">
<HeaderStyle Width="45px" />
</asp:ButtonField>
<asp:ButtonField HeaderText="Active" CommandName="Active" Text="<img src="../Images/BMG_icon_detail.GIF" border=0; alt='active'>">
<HeaderStyle Width="45px" />
</asp:ButtonField>
<asp:BoundField HeaderText="ROW_REF_ID" DataField="ROW_REF_ID" Visible="False" />
</Columns>
<EmptyDataTemplate>
<table frame="void" cellspacing="0" cellpadding="0" border="1" style="width:720px;border-collapse:collapse;">
<tr class="grid_head">
<th scope="col" style="width:200px;">Action Code</th>
<th scope="col">Description</th>
<th scope="col" style="width:45px;">Detail</th>
<th scope="col" style="width:45px;">Delete</th>
</tr>
<tr class="grid_row">
<td colspan="4" align="right">1</td>
</tr>
</table>
</EmptyDataTemplate>
</asp:GridView>
- Gridview无数据时显示表头的问题
- Gridview无数据时显示表头的问题
- 当GridView无数据时显示表头
- GridView无数据时显示表头
- GridView无数据时.仍然显示表头.
- GridView无数据显示表头
- GridView无数据显示表头的最简易代码,极品!
- GridView/DataList无数据时仍然显示表头
- 绑定GRIDVIEW时无数据显示表头方法
- GridView/DataList无数据时仍然显示表头
- gridview无数据时候显示表头
- 关于GridView的无数据显示问题..
- GridView无数据时加表头的方法
- GridView,空数据时显示表头最简单的方法!
- Gridview空数据的时候显示表头
- Gridview空数据的时候显示表头
- Gridview空数据的时候显示表头
- gridview 无数据保留表头
- ORACLE索引与高性能SQL介绍
- java 随机数的产生方式(两种)
- VPN无法从外网访问的问题
- Hibernate的class属性有以下几种可选类型:
- Oracle优化经典文章------索引原理篇
- Gridview无数据时显示表头的问题
- VC: 去掉CListCtrl 的外框
- InfoPath示例网址
- 介绍ADOX类
- World Wind Introduction (Beginner)
- C#操作Excel初探
- ARM启动代码分析
- 开通CSDN博客,呵呵!
- 测试