GridView加入自动求和求平均值小计
2008-09-22 22:51
387 查看
17.GridView加入自动求和求平均值小计
效果图:
前台代码
1<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="3" OnRowEditing="GridView1_RowEditing"
2 OnRowUpdating="GridView1_RowUpdating" OnRowCancelingEdit="GridView1_RowCancelingEdit" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" Font-Size="12px" OnRowDataBound="GridView1_RowDataBound" ShowFooter="True" >
3 <FooterStyle BackColor="White" ForeColor="#000066" />
4 <Columns>
5 <asp:CommandField HeaderText="编辑" ShowEditButton="True" />
6 <asp:BoundField DataField="身份证号码" HeaderText="编号" ReadOnly="True" />
7 <asp:BoundField DataField="姓名" HeaderText="姓名" />
8 <asp:BoundField DataField="出生日期" HeaderText="邮政编码" />
9 <asp:BoundField DataField="家庭住址" HeaderText="家庭住址" />
10 <asp:BoundField DataField="邮政编码" HeaderText="邮政编码" />
11 <asp:BoundField DataField="起薪" HeaderText="起薪" />
12
13 </Columns>
14 <RowStyle ForeColor="#000066" />
15 <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
16 <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" CssClass="ms-formlabel DataGridFixedHeader"/>
17 <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
18</asp:GridView>
[/code]
效果图:
前台代码
1<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="3" OnRowEditing="GridView1_RowEditing"
2 OnRowUpdating="GridView1_RowUpdating" OnRowCancelingEdit="GridView1_RowCancelingEdit" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" Font-Size="12px" OnRowDataBound="GridView1_RowDataBound" ShowFooter="True" >
3 <FooterStyle BackColor="White" ForeColor="#000066" />
4 <Columns>
5 <asp:CommandField HeaderText="编辑" ShowEditButton="True" />
6 <asp:BoundField DataField="身份证号码" HeaderText="编号" ReadOnly="True" />
7 <asp:BoundField DataField="姓名" HeaderText="姓名" />
8 <asp:BoundField DataField="出生日期" HeaderText="邮政编码" />
9 <asp:BoundField DataField="家庭住址" HeaderText="家庭住址" />
10 <asp:BoundField DataField="邮政编码" HeaderText="邮政编码" />
11 <asp:BoundField DataField="起薪" HeaderText="起薪" />
12
13 </Columns>
14 <RowStyle ForeColor="#000066" />
15 <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
16 <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" CssClass="ms-formlabel DataGridFixedHeader"/>
17 <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
18</asp:GridView>
[/code]
相关文章推荐
- GridView加入自动求和求平均值小计
- GridView加入自动求和求平均值小计[转]
- GridView加入自动求和求平均值小计
- GridView加入自动求和求平均值小计
- GridView加入自动求和求平均值小计
- GridView加入自动求和求平均值小计?
- GridView加入自动求和求平均值小计
- 17.GridView加入自动求和求平均值小计
- GridView自动求和、求平均值小计[转]
- GridView自动求和、求平均值小计
- Gridview中加入求和和求平均值
- Gridview中加入求和和求平均值 (转载)
- ALV自动排序求和小计
- GridView 在Footer加上自动求和行
- gridview自动求和及合并多列多行单元格
- EXCEL中对自动筛选的结果部分求和、平均值、最大、最小值等
- GridView 在Footer加上自动求和行
- GridView控件中自动求和、合并单元格和排序
- ASP.net GridView里加入的CheckBox选项自动取消问题
- liunx 下把SMB加入自动启动