Wrox Programmer Forums
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 21st, 2005, 05:27 PM
Friend of Wrox
Join Date: Mar 2005
Posts: 264
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to add paging option to my datagrid

Hi experts. I want to add paging option to my datagrid.(5 records per page) I be happy if some one help me put
pagaing option to my datagrid .Thanks

<form runat="server">

<asp:DataGrid id="DBEditDataGrid" runat="server"
    BorderWidth = "1" CellSpacing = "2" CellPadding = "2"
    HeaderStyle-Font-Bold = "True"

     OnEditCommand   = "DBEditDataGrid_Edit"
    OnCancelCommand = "DBEditDataGrid_Cancel"
    OnUpdateCommand = "DBEditDataGrid_Update"

    AutoGenerateColumns = "False"

        <asp:BoundColumn HeaderText="PLAYERNO"              DataField="PLAYERNO"  ReadOnly="True" />
        <asp:BoundColumn HeaderText="NAME"                  DataField="NAME"        />
        <asp:BoundColumn HeaderText="INITIALS"              DataField="INITIALS"    />
        <asp:BoundColumn HeaderText="BIRTH_DATE"            DataField="BIRTH_DATE"  />
                <asp:BoundColumn HeaderText="************"                   DataField="************"         />
                <asp:BoundColumn HeaderText="JOINED"                DataField="JOINED"      />
                <asp:BoundColumn HeaderText="STREET"                DataField="STREET"      />
                <asp:BoundColumn HeaderText="HOUSENO"               DataField="HOUSENO"     />
                <asp:BoundColumn HeaderText="POSTCODE"              DataField="POSTCODE"    />
                <asp:BoundColumn HeaderText="TOWN"                  DataField="TOWN"        />
                <asp:BoundColumn HeaderText="PHONENO"               DataField="PHONENO"     />
                <asp:BoundColumn HeaderText="LEAGUENO"              DataField="LEAGUENO"    />

            HeaderText = "Edit"
            EditText   = "Edit"
            CancelText = "Cancel"
            UpdateText = "Update"






Old May 22nd, 2005, 07:04 AM
planoie's Avatar
Friend of Wrox
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts


Look at AllowPaging and PageSize.


Similar Threads
Thread Thread Starter Forum Replies Last Post
add new datasource doesn't have database option aflores207 Visual C++ 0 August 19th, 2008 03:33 PM
Custom paging in Datagrid with datagrid page count madhusrp ASP.NET 1.0 and 1.1 Professional 12 June 2nd, 2008 01:15 PM
DataGrid Paging nsrujan C# 0 February 6th, 2006 09:12 AM
How to add paging for access db using asp method Classic ASP Databases 1 June 3rd, 2005 02:12 PM
datagrid-paging kvanchi ASP.NET 1.0 and 1.1 Basics 2 December 8th, 2004 04:17 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.