Very strange behavours in datagrid when setting EnableViewState=false

M

michele

Hi, i'm using a datagrid control in my webform, with
AutoGenerateColumns=false; it work very well if EnableViewState=true;
including paging and sorting, but this cause a big performance issue, so
i've decided to set EnableViewState=false:
now the events related to the datagrid have some strange behavours: for
example the PageIndexChangedEvent is not correcty raised (when i go from
page 1 to 4 works, if i want to return to page 1, the event is not longer
raised)
Please help me
Thanks,
Mik
 
W

Weston Weems

Are you re-databinding these controls on each load?

Also, keep in mind control events are raised after
page_load but before pre-render. If you have something
funky going on if pageindex is 1 in page_load, that may
affect the event firing or not.

If it doesnt fire at all ever, its probably that vs.net
lost event binding (its notorious for doing so)

Weston
 
M

michele

Yes, i'm re-databinding the control on each Page_Load event... the only
change i've made is to set EnableViewState=false
what does mean "vs.net lost event binding"????
Thanks
 

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

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top