pagination in datagrid in asp.net 2.0

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//
 
C

Cowboy \(Gregory A. Beamer\)

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!
|
*************************************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top