Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > How to recreate custom rows w/o re-binding?

Reply
Thread Tools

How to recreate custom rows w/o re-binding?

 
 
aabdis
Guest
Posts: n/a
 
      05-24-2004
Here is the problem:

I create a grid, which in ItemCreated() adds in custom header rows on
changes in a particular field's value. All fine-and-dandy the first time
through. On postback however, since the "row" controls were dynamic, they
are no longer there. This of course screws up eventhandlers and such since
now the controls on the page dont match the controls in the viewstate.

How can i recreate those headers? The query that the grid is based on is a
long-running search query and so it really is not desirable to do a re-bind
on the grid. ItemCreated doesnt work anymore, since the grid now no longer
has a datasource. I tried storing all the custom rows and their indices in a
collection server-side and manually re-adding them on postback, but the IDs
do not match up and in fact i wound up getting duplicate ids in the control
tree, which of course ASP complained about.

So how in the world are you supposed to handle custom rows on the postbacks?
Thanks in advance for any help, advice, recommendations, etc.

- --


 
Reply With Quote
 
 
 
Reply

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
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
How recreate "registry.dat" file? Martin Leese Firefox 7 08-01-2005 12:41 PM
Recreate Outlook Web Access 2003 Look and Feel kevinsaucier ASP .Net 0 05-12-2005 03:29 AM
Recreate msdn drill down look and feel Mark ASP .Net 2 02-23-2004 09:37 PM
Re: how to recreate the default ASPNET account ? Carl Prothman [MVP] ASP .Net 0 08-09-2003 06:47 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57