Check all rows of datagridview on a click of a checkbox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Benniit
    New Member
    • May 2008
    • 54

    Check all rows of datagridview on a click of a checkbox

    Thanks for the previous question, Tlhintoq. It worked like magic!

    Now, on a click of a checkbox, I want all the rows to get checked. Is that possible?

    Thanks
    Ben
  • Aimee Bailey
    Recognized Expert New Member
    • Apr 2010
    • 197

    #2
    Code:
      for each r as DataGridViewRow in DataGridView1.Rows
        r.cells(0).value = check1.checked
      next r

    Comment

    Working...