Insert validator error when updating

DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Insert validator error when updating

  1. #1
    Join Date
    Nov 2006

    Exclamation Insert validator error when updating

    hi all ,

    I have a Gridview and textboxes in the footer of all the attributes. The text boxes are to add new data into the grid. i also have a button in the footer which adds the new data in.

    I have validators for my add new attributes, so if an attribute is not entered in, it will show a red star indicating in needs to be filled in.

    This is where i have the problem, when i update a field, because the text boxes for the add are visible when i try to update a field the validators show saying that the fileds for adding a new record have not been entered, as a result the update does not occur.

    To get around this problem i took out the validators and it worked like a charm, but i really want those validators in. is there any way i can have them in?

    Attached Images Attached Images

  2. #2
    Join Date
    Nov 2003
    Portland, OR
    You may assign a ValidationGroup property to the validators and your Add button, so the validators fire when the Add button is clicked, but not when you edit a row in the GridView. See for more information.
    Phil Weber

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

Similar Threads

  1. Replies: 18
    Last Post: 12-13-2006, 02:49 PM
  2. how to clone database using mysql
    By zarien in forum Database
    Replies: 1
    Last Post: 05-17-2006, 03:27 AM
  3. Having issues with BULK INSERT, please advise...
    By Tony Fountain in forum Database
    Replies: 4
    Last Post: 02-04-2003, 04:30 PM
  4. INSERT for multiple tables with IDENTITY
    By Kay in forum Database
    Replies: 1
    Last Post: 07-04-2001, 05:18 AM
  5. SQL Tutorial (Answer Q's & post your reply)
    By bigbastard4 in forum Database
    Replies: 2
    Last Post: 05-16-2001, 06:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center