DataList validation - only validate datalist on clicking "Update" or "Edit"

Posted on 2010-01-06
Last Modified: 2013-11-08

I have a page with a datalist on it. The page has several other controls too. Users add/update items from datalist and enter data in textboxes etc.  The textboxes have validators. Also the datalist has a usercontrol with validators.

I want the user to be able to edit / update the items on datalist WITHOUT the whole page being validated.
With CausesValidation=True set for the Linkbuttons on datagrid, the whole page is validated ...this isn't what I want, users should be able to edit/delete the datalist items independent of other items on page / without having to input all the other inputs.

I have currently set CausesValidation=False so that users can edit/update the datalist without this failing because of other controls not validating. This means that the datalist is not validated of course though, and I want the datalist to be validated.

Thanks in advance for help.
Question by:rwallacej
    LVL 5

    Accepted Solution

    You can define validation groups
    LVL 5

    Expert Comment

    MSDN article about validation groups:

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
    This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now