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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:10:02+00:00 2026-06-13T03:10:02+00:00

I am using checkbox in an itemtemplate column in a Silverlight 5 DataGrid .

  • 0

I am using checkbox in an itemtemplate column in a Silverlight 5 DataGrid.
I am facing a strange problem with it. When I select more than one checkbox and then scroll the grid up and down, the selection shifts to some other checkbox.

  • 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-13T03:10:04+00:00Added an answer on June 13, 2026 at 3:10 am

    This is a known behaviour since Silverlight is re-using its graphical resources in the DataGrid. There’s a discussion about it in this Silverlight thread.

    It seems one way to fix it is to databind the IsSelected property:

    My solution at that time was to add a new property in my data source:
    IsSelected, and to bind the checkbox to that value.

    You have more additional info in this thread, where Microsoft answers:

    This is not a bug. What happens when you scroll around in the
    DataGrid is the same checkboxes are being used for new data because
    the DataGrid recycles the visuals. When your new data has different
    values, the check will change through the Binding and you’ll receive
    the event. What you can do to get this scenario to work is to listen
    to LoadingRow which is raised when a row comes into view. In there,
    you can call column.GetCellContents to get the contents of the cell.
    This will give you the CheckBox, and you can attach to CheckChanged at
    this time. If you do this, you need to do something similar and
    listen to UnloadingRow so you can detach the eventhandler when the
    checkbox is scrolled out of view.

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

Sidebar

Related Questions

I am using checkbox in the gridview header to select all records in the
I've got some problem in making a search using checkbox. Basically, I've got some
I have a gridview that I have added a checkbox column using a templatefield
Ok I am using a column with check box to be able to select
I have made a CheckedListBox using the following: <ListBox x:Name=lst_checkBoxList ItemsSource={Binding}> <ListBox.ItemTemplate> <DataTemplate> <CheckBox
i am using custom checkbox buttons in my table view and want to save
How can I preserve the states of checkbox using session? I tried the following
I was wondering how can I validate a single checkbox using PHP and MySQL.
How to disable asp:TextBox on client-side click on HTML checkbox or server-side asp:CheckBox using
i am trying to get checkbox value ,using c# In grid view the datasource

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.