470,590 Members | 2,556 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,590 developers. It's quick & easy.

Advice on editable datagrid

Hi,

Could you help me to understand how datagrid works.
I'm trying to make a datagrid editable. Now most of the tutorials I read
says that i should turn the Enable ViewState off. Why is that?

If i turn this off then i need to support building the datagrid because
the datagrid is not persistant.
Right?

If i put the EnableViewState off then i don't get any call to:
protected override void LoadViewState(object savedState).
Right?

If i put EnableViewState on then i get calls to this function but if i
rebuild the datagrid in this function then is it still not recommended
to have EnableViewState?

If i don't have the EnableViewState and have an editable datagrid and in
the Page_Load function i have the recommended:
if (!Page.IsPostBack)
and in the if clause i have a function call to build the datagrid. Ok

If i click on the edit button in the datagrid then i will not get any
events to EditCommand because the IsPostBack is true and no datagrid was
built.
Right?

Please leave some comments/suggestions on this

Yours sincerely
Andla

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 15 '05 #1
0 1055

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by mai via DotNetMonster.com | last post: by
4 posts views Thread by Stephan Bour | last post: by
2 posts views Thread by Jesper Stocholm | last post: by
reply views Thread by DaveR | last post: by
2 posts views Thread by Carlo Marchesoni | last post: by
2 posts views Thread by zambizzi | last post: by
6 posts views Thread by Richard L Rosenheim | last post: by
2 posts views Thread by adodotnet20 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.