如何将图表与分页的gridview绑定 [英] How to bind chart with a paged gridview

查看:71
本文介绍了如何将图表与分页的gridview绑定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题是我不是根据gridview的列值显示图表...但是我的网格视图是分页的...所以我希望图表显示根据网格视图的页面显示的数据.我的网格视图已分页

MY problem is dat im displaying a chart according to the coloum values of gridview...but my grid view is paged...so i want the chart to display data acc to the pages of grid view. My grid view is paged

推荐答案

Hey sonali welcome to code Project this is ur first question na??
You can Remove paging of gridview and Put Gridview inside the panel and in panel You can set property ScrollBars="Auto" this will work fine


<asp:Panel Style="text-align: left" ID="Panel1" runat="server" Width="475px" Height="257px"

                                           ScrollBars="Auto">
                                           <asp:GridView ID="GrdDoct" Style="font-weight: normal" TabIndex="3" runat="server"

                                               Width="455px" BorderStyle="Solid" BorderWidth="1px" BorderColor="Gray" BackColor="White"

                                               Font-Size="9pt" Font-Names="Verdana" ToolTip="Click For View in Detail" ForeColor="Black"

                                               AutoGenerateColumns="False" CellPadding="3" GridLines="Vertical" ShowHeader="False">
                                               <FooterStyle BackColor="#CCCCCC"></FooterStyle>
                                               <Columns>


</Columns>
                                               <SelectedRowStyle BackColor="#000099" ForeColor="White" Font-Bold="True"></SelectedRowStyle>
                                               <PagerStyle BackColor="#DE6232" ForeColor="White" HorizontalAlign="Center"></PagerStyle>
                                               <HeaderStyle BackColor="Black" ForeColor="White" Font-Bold="True"></HeaderStyle>
                                               <AlternatingRowStyle BackColor="#CCCCCC"></AlternatingRowStyle>
                                           </asp:GridView>
                                       </asp:Panel>


这篇关于如何将图表与分页的gridview绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆