By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,871 Members | 2,304 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,871 IT Pros & Developers. It's quick & easy.

Gridview problem edit only works on second postback.

P: n/a
I have a Gridview that I'm having strange problems with. When I click on the
edit hyperlink in order to get the field I want to edit to show as a edit box
I have to click on the edit button twice (two round-trips). Does anyone know
what I might be doing wrong?. I have in the editing event code where i set
the edit index to the e.neweditindex. Also once I make my change and click
the Update hyperlink it does nothing. Looks like its doing a post back but it
does not perform the update.
doing this on RowUpdaing:
e.NewValues[entry.Key] = Server.HtmlEncode(entry.Value.ToString());

And calling my stored procedure on the rowUpdated. Again I put break point
in the update events and they never hit.
Mar 21 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.