[Last Call] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 221
  • Last Modified:

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


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.
  • 2
1 Solution
You can define validation groups
MSDN article about validation groups:

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now