Make DataGridView checkbox column editable RRS feed

  • Question

  • Hi all,

    I have a datagridview with various columns - one of which is a checkbox column.

    I want the user to be able to edit ONLY the checkbox column i.e. check/uncheck, I don't want the user to be able to edit any of the other columns.

    I have only found one properly EditMode - however it applies to all the columns.

    How to I restrict editing just to the checkbox?

    Monday, March 23, 2009 12:43 PM


  • Your almost there.

    Once you have selected the Enable Editing property, click on 'Edit Columns'.  This is where you can select individual columns and set them to 'Read Only' in the Behavior section.  By default all columns 'Read Only' property is set to False.  Select the columns you want to be 'Read Only' and set the property to 'True'.

    You should be good to go!
    • Proposed as answer by dr_linux Monday, March 23, 2009 1:03 PM
    • Marked as answer by TheLearner Monday, March 23, 2009 2:26 PM
    Monday, March 23, 2009 1:01 PM