pagination in datagrid in asp.net 2.0

  • Thread starter Thread starter AVL
  • Start date Start date
A

AVL

Hi,
I've a requirement wherein I need to create datagrid dynamically along with
the pagiantion implementation in aspx page. I've created the grid dynamically
but i've problem with the paging event..
This dynamcially binded event isn't firing...when I click on the page number..

Any articles on dynamically adding datagrod along with events like
pageindexedchaged, itemdataboun etc//
 
Here are a couple of ideas:

1. Check your code behind and make sure you aren't rebinding every time.
This is a very common error.
2. How are you binding the paging event? This could be an issue, especially
if you are binding before the viewstate is loaded, which will overwrite your
new bind.

This assumes you are just dynamically binding the exsiting ASP.NET DataGrid
(or GridView). If you are building your own as a derived class, you may have
overwritten something important.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*************************************************
| Think outside the box!
|
*************************************************
 
Back
Top