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

Prevent update on GridView

P: n/a
I have a GridView for editing dropdown selection tables. The tables do not
allow null (empty) text. How can I avoid running the update if a user
blanks out the TextBox? I am thinking I need to use the OnUpdating method
but I'm not sure how to refer to the current TextBox. Currently, it throws
an SQL exception. Thank you.

David
Jun 8 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Nevermind. I found the Updating event to do what I need.

David
"David C" <dl*****@lifetimeinc.comwrote in message
news:uA**************@TK2MSFTNGP03.phx.gbl...
>I have a GridView for editing dropdown selection tables. The tables do not
allow null (empty) text. How can I avoid running the update if a user
blanks out the TextBox? I am thinking I need to use the OnUpdating method
but I'm not sure how to refer to the current TextBox. Currently, it throws
an SQL exception. Thank you.

David

Jun 8 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.