Click here to Skip to main content
Rate this: bad
good
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 21: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
0 OriginalGriff 6,656
1 Sergey Alexandrovich Kryukov 6,490
2 CPallini 5,310
3 George Jonsson 3,584
4 Gihan Liyanage 2,650


Advertise | Privacy | Mobile
Web04 | 2.8.140921.1 | Last Updated 4 Oct 2012
Copyright © CodeProject, 1999-2014
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