Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
| Search | Today's Posts | Mark Forums Read
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
  #1 (permalink)  
Old September 3rd, 2007, 12:39 PM
Authorized User
 
Join Date: Jun 2003
Location: New Bedford, ma, USA.
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default move next rows in DataGrid < > prop. not correct

Hi

In a DataGrid using Professional1,
to make the < > moving to new rows, at the bottom of the grid, I nead the list of properties and values to make it move.
It is not working, because I don't know which properties to make it work in this case vs2003. (or any would be fine)

I keep guessing but no luck, if I could set properites one by one till it made sense that would be nice.
I think it should be about five properties, guessing.
Please help.

Thanks in advance
  #2 (permalink)  
Old September 4th, 2007, 03:57 AM
Friend of Wrox
Points: 1,935, Level: 17
Points: 1,935, Level: 17 Points: 1,935, Level: 17 Points: 1,935, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2004
Location: United Kingdom
Posts: 550
Thanks: 0
Thanked 1 Time in 1 Post
Default

To do paging in datagrid, follow the steps below:

1. Set AllowPaging = true;
2. Set Pagesize to your desired one.
3. Now on grid's PageIndexChanged event, write the below (sample code I have written)

protected void dg_PageIndexChanged(object source, DataGridPageChangedEventArgs e)
        {
            dg.CurrentPageIndex = e.NewPageIndex;

            //Method to bind the datagrid
            BindGrid();
        }

Regards
Mike

To the world you might be one person,
but for someone you might be the whole world.
  #3 (permalink)  
Old September 4th, 2007, 06:23 PM
Authorized User
 
Join Date: Jun 2003
Location: New Bedford, ma, USA.
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you.
  #4 (permalink)  
Old September 5th, 2007, 10:17 AM
Friend of Wrox
Points: 1,935, Level: 17
Points: 1,935, Level: 17 Points: 1,935, Level: 17 Points: 1,935, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2004
Location: United Kingdom
Posts: 550
Thanks: 0
Thanked 1 Time in 1 Post
Default

no need to say thanks, knowledge sharing is the best part of development (according to me).

Regards
Mike
===================================
 To the world you might be one person,
 but for someone you may be the whole world.
===================================
^^Though the above is non-technical, but there is no harm thinking emotionally.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ch 8: <asp:image> inside <a> & ext.CSS (pg. 274) epc BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 1 July 12th, 2008 04:37 AM
Move Datagrid rows michael29 ASP.NET 1.0 and 1.1 Professional 1 April 24th, 2007 05:31 PM
<style> tags in a <body> vs. <div> bcat BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 1 March 27th, 2005 08:50 AM
<marquee><b>About CHAT App. in PHP4</b></marquee> Ramkrishna PHP How-To 1 September 11th, 2004 07:01 AM
<STRONG> vs <B> and <EM> vs <I> anshul HTML Code Clinic 12 September 1st, 2004 05:22 PM





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