【推荐】【置顶】求助,我想设置一个按钮打印GRIDVIEW里面的数据
韩小婼 2011-05-12 01:18:29 语言:C#
想设置个按钮点击打印出GRIDVIEW里面的内容?
<asp:GridView ID="GridView1" runat="server" AllowPaging="True"
AutoGenerateColumns="False" Width="80%"
PageIndex="30" CellPadding="4" ForeColor="#333333" GridLines="None">
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
<Columns>
<asp:BoundField DataField="UserID" HeaderText="ID" HeaderStyle-Width="50px" />
<asp:HyperLinkField DataNavigateUrlFields="UserID" DataNavigateUrlFormatString="WageEdit.aspx?id={0}" DataTextField="UserName" HeaderText="用户名" />
<asp:BoundField DataField="Email" HeaderText="邮件" HeaderStyle-Width="150px" />
<asp:BoundField DataField="Address" HeaderText="家庭地址" HeaderStyle-Width="250px" />
<asp:BoundField DataField="Phone" HeaderText="联系方式" HeaderStyle-Width="150px" />
<asp:BoundField DataField="Degree" HeaderText="学历" HeaderStyle-Width="50px" />
<asp:BoundField DataField="Salary" HeaderText="月工资" HeaderStyle-Width="50px" />
</Columns>
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<EditRowStyle BackColor="#999999" />
<AlternatingRowStyle BackColor="White" ForeColor="#284775" />
</asp:GridView>
我的GRIDview,恩,需要个按钮打印目前的所有数据。对了还想增加一列可以统计所有人的薪酬的,怎么写啊,我不会啊,郁闷,高手教我