Click here to Skip to main content
12,623,027 members (28,799 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# ASP.NET
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
Posted 3-Oct-12 22:46pm

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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>
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.161128.1 | Last Updated 4 Oct 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100