p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 1.0 and 1.1 Basics (http://p2p.wrox.com/forumdisplay.php?f=60)
-   -   move next rows in DataGrid < > prop. not correct (http://p2p.wrox.com/showthread.php?t=61733)

fbailey September 3rd, 2007 12:39 PM

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

mike_remember September 4th, 2007 03:57 AM

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.

fbailey September 4th, 2007 06:23 PM

Thank you.

mike_remember September 5th, 2007 10:17 AM

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.


All times are GMT -4. The time now is 12:06 PM.

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