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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T22:53:49+00:00 2026-05-10T22:53:49+00:00

DataGridView.CellContentClick is not firing if I mouse click a DataGridViewCheckBoxCell very fast. How can

  • 0

DataGridView.CellContentClick is not firing if I mouse click a DataGridViewCheckBoxCell very fast. How can I solve this? I need to know when CheckBox’s check state changes

  • 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. 2026-05-10T22:53:49+00:00Added an answer on May 10, 2026 at 10:53 pm

    Try handling the CellMouseUp event.
    You can check which colum the MouseUp event occurred in to see if it is your checkbox column.
    You can also find out if it is in edit mode and end the edit mode programmatically, which in turn will fire the CellValueChanged event.

    In the example below, I have a DataGridView with two colums.
    The first is a DataGridViewTextBoxColumn and the second is a DataGridViewCheckBoxColumn.
    When the checkbox changes, the first column wil reflect its check state, without having to move from the row or cell.

    public partial class Form1 : Form {     public Form1()     {         InitializeComponent();         dataGridView1.Rows.Add('False', false);         dataGridView1.Rows.Add('True', true);     }      private void dataGridView1_CellMouseUp(object sender, DataGridViewCellMouseEventArgs e)     {         if (e.ColumnIndex == 1 && e.RowIndex >-1 && dataGridView1.Rows[e.RowIndex].Cells[1].IsInEditMode)         {             dataGridView1.EndEdit();         }     }      private void dataGridView1_CellValueChanged(object sender, DataGridViewCellEventArgs e)     {         if (e.RowIndex != -1)         {             dataGridView1.Rows[e.RowIndex].Cells[0].Value =                dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString();          }     } } 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A DataGridView bound by this code does not display information as expected: dataGridView1.DataSource =
I can get the current selected row in this way: private void DataGridView1_CellContentClick(object sender,
I have a datagridview with a column with checkbox in it. What I am
I have a DataGridView in a windows form. I defined 5 columns for this
hi i have a datagridview whose first column (index = 0) is a checkbox
I have readonly datagridview, I need in some specific case enable one cell after
I have a datagridview which I'm using for data entry. I've done this before
DataGridView, for example, lets you do this: DataGridView dgv = ...; DataGridViewCell cell =
DataGridView keydown event is not working when I am editing text inside a cell.
My datagridview has a checkbox column that is only valid for some records in

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.