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 3443312
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:46:33+00:00 2026-05-18T08:46:33+00:00

I have a little problem with the silverlight data grid. I wrote a little

  • 0

I have a little problem with the silverlight data grid. I wrote a little sample app to show the problem. (You can download it here: http://rapidshare.com/files/433480041/DataGridValidationTest.zip).
Here you can Add a new Person (has a Name and an Age) to a Collection which is displayed in a DataGrid.
I also implemented the validation based on the INotifyDataErrorInfo interface. If you click save, the data is validatet (Name must not be null, Age gt 0).

The validation works fine, but the validation errors are only displayed if I click into one row. After clicking the Save Button, the data is validatet, but not shown in the grid (see picture below):
Validation is not shown :(

If I click in the row, to change the data, the validation message is shown (picture below):
Validation shown

If I’m in that row, I have to resolve the problem, cause I’m not able to select another cell.

Does anyone know, how I can show (all) errors directly in the grid?
And can I get out of the cell with the error without resolving the problem?

Thx in advance,

TJ

  • 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-05-18T08:46:33+00:00Added an answer on May 18, 2026 at 8:46 am

    As far as I know, in Silverlight datagrid, only one row would be active at a time, so if you want to valudate all rows at the same time, it is not possible.

    Another workaround is add your all content in the same cell. So all your data would be editable and it would be validated at the same time as well. What I mean is

    If you have grid with 2 columns –

    <DataGrid>
    <Name>
    <Age>
    </DataGrid>

    make it look like this
    <Grid>
    <Cell>
    <Grid>
    <Name>
    <Age>
    </Grid>
    </Cell></DataGrid>

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

Sidebar

Related Questions

I have little problem with my script. Here is the code. http://pastie.org/2361140 When I
i have little problem with boost::asio library. My app receive and process data asynchronously,
I'm have little problem in retrieving the data from a table here's the code:
I have a little problem with Jquery getJSON function. my json here { entries:
I have a little Problem with the app that I'm developing. In the App
I have little problem with printing data like this, I have written script like
So I have this little problem making this to work: I have silverlight client
I have little problem. I can't use AcceptVerb.Get on some ASP.NET MVC actions because
I have little problem in my iPhone application code but can not identify. please
I have one little problem...Here is my code..Is there a way to distribute weights

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.