Hi,
We're using Advanced binding, and I have a lot of anomalies with the NeedDataSource event.
The strange things I experience: (EnableViewState="True")
-the event fires even if the Grid.Visible = false
-the event fires on every postback, with RebindReason = InitialLoad
I have EditMode = EditForms, but the event sequence is the following on every postback, for example the clickhandler of a button in the edit usercontrol
1. Page load
2. NeedDataSource
3. EditControl's PageLoad
4. Close_Click
As far as I know it should be
1. Page load
2. EditControl's PageLoad
3. Close_Click
4. NeedDataSource
I call Grid.MasterTableView.Rebind only in the click eventhandler of my Search button, but it doesn't fire the NeedDataSource event, because it's called a bit earlier, because of the postback...
I've read all the articles and forum threads regarding NeedDataSource, I have no idea what's wrong, it seems that the Grid can't use the Viewstate, but that's enabled at every possible location. Moreover I call TrackViewState on InitComplete, but this behaviour doesn't change.
What should I try?
thanks,
Attila
