Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Paging doesn't work if datagrid is built in code behind

Thread Tools

Paging doesn't work if datagrid is built in code behind

Bernard O'Flynn
Posts: n/a
I've also posted this to the datagrid newsgroup and have had no response.
There is also a post from another user with the same issue with no response.

I have a text box which is used to accept a search term. The user clicks a
button and the results are displayed in a datagrid.
Because I need to use .Net localization, I cannot define the datagrid
columns and headers in the aspx page - I have to do it in the code behind.
If I build up the datagrid in the code behind paging doesn't work. I get the
first page and when I click on the forward arrows then:
a) the paging event doesn't fire
b) the datagrid disappears

Can any one help please?


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Non-code behind to code behind John ASP .Net 2 02-19-2007 07:08 PM
datagrid paging - customising paging style wh1974 ASP .Net 0 01-12-2005 03:48 PM
DataGrid Built In Paging and DataGridItem Problem Paul Perot ASP .Net 0 12-12-2003 01:17 AM
Paging doesn't work if columns built up in code? Bernard O'Flynn ASP .Net Datagrid Control 1 11-05-2003 04:23 PM
Re: Code Behind vs. no code behind: error Ben Miller [msft] ASP .Net 1 06-28-2003 01:46 AM