Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Grid View and Update...

Status
Not open for further replies.

bartee

MIS
Mar 20, 2005
147
US
Using visual studio 2005.

I have a webpage with a button that, when clicked, will postback the page -- inserting the value of the texbox on the page into the database. I also have a required field validator on this texbox.

On the same, I also have a gridview that allows edit. When the user clicks the edit button on the gridview, it properly displays the update and cancel buttons. When the user CLICKS the update button everything works correctly. However, if the user is editing the grid and presses ENTER instead of clicking update, the page ALSO validates the textbox on the page.

Is there a way to code my page so the enter button will function the same way as the "update" button when in edit grid mode?

Thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top