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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T15:46:37+00:00 2026-06-05T15:46:37+00:00

I have a datagridview with a column with checkbox in it. What I am

  • 0

I have a datagridview with a column with checkbox in it. What I am trying to do is when user click on the check box, I need to check for some other conditions, and only allow the check box to be selected if conditions meet other wise stop the event and dont allow checkbox selection.

Can some one guide pls?

  • 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-05T15:46:40+00:00Added an answer on June 5, 2026 at 3:46 pm

    OK, so here is the recap of my problem
    I have a windows form application, it loads some information from a datasource(file, db etc).
    When its loaded, every row’s first column has DataGridViewCheckBoxCell in it. Requirement was that when a user clicks on the checkbox, it must be checked against the source that this particular row was not checked by any other user from any other workstation.
    My Solution Logic as I envisioned it:
    I wanted to make sure when user clicks on the cell, before chackbox is checked, I check from the data source and don’t allow checkbox to be selected or allow it based upon if this row was used by some one else or not.

    My Solution:
    What I came up with is to use CellClick event, because when user clicks on the cell, the checkbox is yet to be selected, then I check the datasource if any other user is using it or not, if it is being used, I set the
    checkbox.ReadOnly=true

    This way this event essentially is dead and nothing happens…:-)
    I wish I had a better approach but this is working for my needs.

    Thanks for every one who tried to help.

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

Sidebar

Related Questions

I have a DataGridView with a checkbox column. I'm trying to create a select/deselect
I have datagridview with checkbox column, but I want, that some of the columns
My datagridview has a checkbox column that is only valid for some records in
On a Windows form I have an unbound datagridview with 1 user-editable column. A
hi i have a datagridview whose first column (index = 0) is a checkbox
Ok, the first column in my datagridview is a checkbox. I have 'multiselect' set
I have a DataGridView in which one column has data that the user needs
I have a DataGridView with an image column. In the properties, I am trying
i have a winform datagridview: DataTable table = new DataTable(); table.Columns.Add(Check, typeof(bool)); table.Columns.Add(User, typeof(string));
I have datagridview with checkbox column, and the checkbox within the column can be

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.