DataGrid Buttons causing validation

T

Tina

the Edit, Update, Cancel, and Delete buttons in my datagrid are causing
validation elsewhere on the page. I want to specify that these buttons
should not cause validation but they have no design time property of
causevalidation.

How can I keep them from causing validation?

Thanks,
T
 
B

Brock Allen

You can put in your own ItemTemplate column and inside there put <asp:LinkButton
CausesValidation=false CommandName="Update" .... />. The special names for
CommandName are "Update", "Delete" and "Cancel" as you might expect.
 
T

Tina

my buttons are "buttons" not linkbuttons. Are you saying to just create a
new column in the grid, make it a non visible template column and put in
your string? what does the .... mean?
T
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top