Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7777313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T18:06:36+00:00 2026-06-01T18:06:36+00:00

We are using XamDataGrid in our WPF application. It works well, we added support

  • 0

We are using XamDataGrid in our WPF application. It works well, we added support in our application for IDataErrorInfo:

<igDP:FieldLayoutSettings AllowFieldMoving="No"
    AutoGenerateFields="False"
    SupportDataErrorInfo="RecordsAndCells" 
    DataErrorDisplayMode="ErrorIconAndHighlight" />

The binding on this datagrid goes to an ObservableCollection of an object Foo that implements IDataErrorInfo. We have data validation on individual properties, such as a Text property, which generate an error if a property is empty or had too many characters. This works great for update scenarios–the cell with the error is highlighted and a tooltip appears.

  <igDP:Field Name="Text"
      Label="{base:TextID _TextField}">
  </igDP:Field>

What we need to accomplish is a validation of the cell’s value against the entire observable collection bound to the data source. So if the user typed in “Apple” in row 2 for the Text cell, but “Apple” already exists in row 10 Text cell, we generate an error condition that the user must correct before continuing.

How could we best accomplish this with XamDataGrid? We want to keep it clean so that object Foo only validates its own properties and doesn’t know about the overall collection.

This article is very close, but I am not sure how to accomplish it with XamDataGrid: Validation of collection item against entire collection to prevent duplicates Could we pass the XamDataGrid Items collection to a custom validator?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T18:06:37+00:00Added an answer on June 1, 2026 at 6:06 pm

    Here is a solution that may work for you:

    http://brianlagunas.com/2012/04/11/validate-a-property-against-a-parent-collection/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some wpf gridviews(presenting only two here) <igDP:XamDataGrid x:Name=dgSummary GroupByAreaLocation=None ScrollingMode=Immediate HorizontalAlignment=Stretch VerticalAlignment=Stretch
we are using Infragistics WPF controls (e.g. xamDataGrid, xamDockManager etc), and we will be
I am using an Infragistics XamDataGrid for my grid. It is bound to an
Using WPF/PRISM I want to log my messages through ILoggerFacade to my GUI (A
Using Android TelephonyManager an application can obtain the state of data activity over the
I am developing a WPF4 app and using DataSet to populate a xamDataGrid (from
Using the C# Facebook SDK 5.0.3 everything works fine whit the client.Get(/me). But when
Using CarrierWave and Amazon S3. CarrierWave config: CarrierWave.configure do |config| config.ensure_multipart_form = false config.permissions
Using of mobile dialog authentication is working well for other mobile devices except on
Using LINQ on collections, what is the difference between the following lines of code?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.