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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:52:48+00:00 2026-05-23T21:52:48+00:00

My problem is the fellowing. I have a ListView which is bind to a

  • 0

My problem is the fellowing. I have a ListView which is bind to a list of object. Then i have a property in that object that is a boolean. In the ListView i have a checkbox which is set to checked or unchecked depending of the value of the bool of that particuliar object in the list.

So i told myself, why not when you click it perform some action on that row.. but the problem is that the action can be cancelled by the user such showing a windows with both apply and cancel. In the event of the user cancel the action.. the checkbox get checked anyway!

Is there a way to cancel this action ?

Thanks.

  • 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-23T21:52:50+00:00Added an answer on May 23, 2026 at 9:52 pm

    As long as you don’t have any special processing for when the checkbox is unchecked, then you can just move your special processing to occur when the checkbox is checked rather than firing on when it is clicked. If the cancel is chosen then you can uncheck the checkbox again by resetting the source bool in your object to False, and ignore the unchecked event.

    If you do have special processing for unchecked, you can use the binding’s SourceUpdated event to detect when the checkbox caused the bool to flip to false rather than the bool causing the checkbox to flip to unchecked.

    If you want to detect when your object’s bool caused a check to update:

    <CheckBox isChecked="{Binding MyBool, Mode=TwoWay, NotifyOnTargetUpdated=True}" TargetUpdated="MyTargetUpdated"/>
    

    If you want to detect when your checkbox caused your object’s bool to update:

    <CheckBox isChecked="{Binding MyBool, Mode=TwoWay, NotifyOnSourceUpdated=True}" SourceUpdated="MySourceUpdated"/>
    

    You can do both at the same time, thus detecting changes both ways and acting accordingly, so that you can choose to act only when the data updated or only when the CheckBox updated.

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

Sidebar

Related Questions

I have the following problem. The background color in a ListView is set LightGreen
I have a following problem. I have a ListView which returns data from SQL
I have the following problem. If I query values with a keyfigure which is
I have the following problem. My main activity consists of a ListView populated with
In my ListView I have an ItemTemplate and EditItemTemplate which look something like this,
I have a PlaceHolder control inside of a ListView that I am using to
I have the following problem. On my layout I have an action bar (which
In an ASP:ListView control, I have a checkbox for each row. Each row represents
OK So I have a combo box which selects an administrator from a list
This one is weird. I have a list view that is a part of

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.