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

  • Home
  • SEARCH
  • 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 6608919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:39:38+00:00 2026-05-25T19:39:38+00:00

Hello, i have a data grid in Windows Forms C#, i have placed a

  • 0

Grid Edit

Hello, i have a data grid in Windows Forms C#, i have placed a column in it for check boxes, for multi deletion, i have an event on this data grid, if i double click on its row, it opens a popup, which has all the details of this row, the problem is, grid is editable and if we double click, some times it get editing mode and start blinking the cursor for edit, but if i make grid uneditable, the check boxes dont work at all, this is quite stupid, i dont find any function with which i can make the checboxes column to editable and rest grid to uneditable, is it possible to sort out this problem? i dont want grid in editing mode at all, because i have a different form for edit and i cant use it as it has different fields with different types. Attaching a small sample. Thanks in advance.

  • 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-25T19:39:39+00:00Added an answer on May 25, 2026 at 7:39 pm

    Another way would be to make the whole datagridview readonly, use the CellMouseClick event and check if the user clicked the cell containing the checkbox and if so toggle the checkbox programmatically:

        private void dataGridView1_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            DataGridViewCell cell = this.dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex];
            if (e.ColumnIndex != 2) return; // if column 2 contains checkbox
            bool check = (bool)cell.Value;
            cell.Value = !check;
        }
    

    This is actually easier (in the FormLoad event):

            foreach (DataGridViewColumn column in this.dataGridView1.Columns)
            {
                column.ReadOnly = column.Index == 2 ? false : true;
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a JSON data like this: { hello: { first:firstvalue, second:secondvalue }, hello2:
Say I have a vector: (def data [Hello World Test This]) And I want
Hello i have this XML and i want to sort all the MESSAGE/DATA/TRANSACTIONS/TRANSACTION With
I have a data structure that looks like this: [ {:choices=>[Hello, Hi]}, , {:choices=>[wor,
If I have data in the following format id subid text 1 1 Hello
I have the following data: A post called Hello has categories greet Another post
I have the following data in my database (comma separated strings): word, test, hello
Hello i have an html form and i'm posting data but i'm unable to
Hello! My problem can be described the following way: I have some data which
Hello I have an array that looks like this, Array ( [cfi_title] => Mr

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.