Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > GridView, CausesValidation

Thread Tools

GridView, CausesValidation

Posts: n/a
I am working through a book on ASP.Net, I added a GridView and SQLDataSource.
Everything worked as expected upon debugging. The rows were displayed with
the Update and Delete buttons on each row. Upon pressing update button on a
row, the row did go into edit mode. Changine a few fields and pressing
resulted in nothing happening.

In looking at the book's solution it has a entry for each command button as


Adding this property to each command button results in the GridView working
properly. It is as if this line should say AutoPostBack="True".

If this property is required, why isn't automatically entered when dropping
a GridView on the design surface?

If you set CauseValidation="True", again the Update button does not cause a
postback even if you turn the updatable columns into template columns and
create a RequiredField validator for each.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
validate method and causesvalidation Martin ASP .Net 3 05-21-2005 04:55 PM
advanced question: making <asp:ButtonColumn> CausesValidation=False z. f. ASP .Net 4 06-25-2004 07:51 PM
why <asp:ButtonColumn> for datagrid doesn't have CausesValidation property like <asp:Button> z. f. ASP .Net 4 06-23-2004 07:26 AM
CausesValidation of editcommandcolumn George Durzi ASP .Net 1 02-12-2004 02:40 AM
CausesValidation not taking in Repeater control Josh Anderson - remove Zs to reply ASP .Net 0 11-20-2003 11:37 PM