Using DataGridViewCheckBoxColumn in DataGridView

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • baudenbacher
    New Member
    • May 2007
    • 1

    Using DataGridViewCheckBoxColumn in DataGridView

    Hi all,

    I´m using a System.Windows. Forms.DataGridV iew which first column is a DataGridViewChe ckBoxColumn (.NET 2.0).
    My DataGridView is enabled to insert new rows. When a check the DataGridViewChe ckBoxColumn in the new row, the DataGridView add a new row with all others columns with blank value.
    I need to disable the add new row only when I check the DataGridViewChe ckBoxColumn. Is it possible?

    Thanks,

    Mauricio.
  • dotnetjunior
    New Member
    • Dec 2007
    • 1

    #2
    hi
    i found similar problem earlier..finaly i found solution.
    i hop this will help u out.
    go to design part and select datagridview
    u can find small icon at top right corneragainst datagridview.da tagridview task will open, when u click it.
    then u unchecked "anable adding". then row should nt add to datagrid.


    thanku









    Originally posted by baudenbacher
    Hi all,

    I´m using a System.Windows. Forms.DataGridV iew which first column is a DataGridViewChe ckBoxColumn (.NET 2.0).
    My DataGridView is enabled to insert new rows. When a check the DataGridViewChe ckBoxColumn in the new row, the DataGridView add a new row with all others columns with blank value.
    I need to disable the add new row only when I check the DataGridViewChe ckBoxColumn. Is it possible?

    Thanks,

    Mauricio.

    Comment

    Working...