Skip to content
Loading
  • Sudhakar Chaudhary
    0
    you should choose event base on your requirement.
    1. private void Form1_Load(object sender, EventArgs e)  
    2.         {  
    3.             DataGridViewCheckBoxColumn chkCol = new DataGridViewCheckBoxColumn();  
    4.             chkCol.Name = "chk";  
    5.             chkCol.HeaderText = "Check";  
    6.   
    7.             dataGridView1.Columns.Add(chkCol);  
    8.             dataGridView1.Columns.Add("name", "Name");  
    9.             dataGridView1.Columns.Add("adr", "Address");  
    10.         }  
    11.   
    12.         private void dataGridView1_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e)  
    13.         {  
    14.             dataGridView1.CurrentRow.Cells["chk"].Value = true;  
    15.         }  
     
    0
  • 0
    Okay Sir Its Working
    but
     
    checking checkbox okay
    how can i do for unchecking? 
    0