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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T13:52:01+00:00 2026-06-08T13:52:01+00:00

When new row added in DataGrid wheter empty or wrong data it’s kept added.

  • 0

When new row added in DataGrid wheter empty or wrong data it’s kept added.
How can I test if causes exception in order to remove it ?

  • I’m using MVVM and PRISM
  • The DataGrid is bound to an ObservableCollection<Humain>

    EDIT : here are pics
    pic1 : Default empty row is double clicked.
    pic2 : Data insertion is canceled by click anywhere else.

When double click on the empty row to start adding new data
Here when edit is canceled by clicking somewhere else

  • 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-08T13:52:02+00:00Added an answer on June 8, 2026 at 1:52 pm

    Well, since you don’t have any code to show us what your Rows look like, or how you are editing them, this general answer is the best I can do:

    • Subscribe to the CollectionChanged event. The new row will be in the args.
    • Check each property for what you consider “emptiness” (assuming you have something other than strings). Return if you find a non-empty property. Otherwise, delete the row.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The new row can be added to the associated server-side collection on an action
When we use datatable.newrow command, a new empty row added to bottom of rows.
Why is this creating a new row at the bottom with this data instead
How can I wait for a new row appearing in a SQL Server table
Using the code below I can insert a new row to my table (
I am trying to create a list that adds a new row of data
I have a new row added to table with a buttton click and we
I am using datagrid view. Data gets added in the table and from the
I have a database that gets a new row added for every time a
jqGrid add forms contains autocomplete boxes using code below. If new row is added

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.