Yeah, that's what I meant indeed.
You can use it to determine through code whether you want to enable it or not. You could also do that at the control level, e.g.:
myGrid.EnableViewState = False
However, I am not sure about the benefits of setting at the item level. Like I said, I never tested it or used it. I can imagine that by using that, you can minimize one of the problems I mentioned earlier: control state.
By disabling only the state for the item, the control *should* be able to maintain state about things like the PageIndex.
Never tested this, so I could be talking crap.... ;)
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|