Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Stop datagrid causing validation

Reply
Thread Tools

Stop datagrid causing validation

 
 
Geoff Murley
Guest
Posts: n/a
 
      04-12-2005
I have a Datagrid with the first Column as Edit. Clicking
on Edit displays the usual Update and Cancel
Links/Buttons. However, after I click on Edit and then
change my data, when I click on Update the Link/Button
Causes Validation on 2 Empty Text boxes further down the
page which are used only for adding a new Row. So how do
I prevent the Update Link/Button from Causing Validation
and firing the Required Field Validators on the textboxes?
 
Reply With Quote
 
 
 
 
Brock Allen
Guest
Posts: n/a
 
      04-12-2005
You'll have to build your own TemplateColumn and add in those Edit/Cancel/Update
buttons yourself. On the Buttons add the CausesValidation=false property.
For the Buttons to work with the DataGrid you'll need to set their CommandName="Edit",
CommandName="Cancel" and CommandName="Update" so the grid knows that they
were clicked.

-Brock
DevelopMentor
http://staff.develop.com/ballen



> I have a Datagrid with the first Column as Edit. Clicking on Edit
> displays the usual Update and Cancel Links/Buttons. However, after I
> click on Edit and then change my data, when I click on Update the
> Link/Button Causes Validation on 2 Empty Text boxes further down the
> page which are used only for adding a new Row. So how do I prevent
> the Update Link/Button from Causing Validation and firing the Required
> Field Validators on the textboxes?
>




 
Reply With Quote
 
 
 
Reply

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
CEF causing http to hang/stop on 1712 mikeyb Cisco 12 11-11-2009 01:43 PM
devenv.exe and others causing stop error (BSOD) 0x50 (Visual Studio 2005) fischermx@gmail.com ASP .Net 0 06-22-2007 04:44 AM
DataGrid Buttons causing validation Tina ASP .Net Datagrid Control 2 11-19-2005 01:15 AM
Datagrid Update Button causing unwanted validation Joe90 ASP .Net Web Controls 0 08-02-2005 04:15 PM
Update button in datagrid causing validation elsewhere on page =?Utf-8?B?RGF2aWQgQ29sbGl2ZXI=?= ASP .Net 4 05-25-2005 11:51 AM



Advertisments