chase pooh

chase pooh

  • NA
  • 3
  • 0

DataGrid View Checkbox question

Jun 15 2009 10:58 AM

Hello,
I am trying to populate a checkbox column in a datagridview control when my form loads.
I am using the following code snippet
 foreach (DataGridViewRow row in gvLocation.Rows)
        {
            row.Cells[0].Value = true;
         }

I have also tried
for (int i = 0; i < gvLocation.RowCount; i++)
    {
        gvLocation.Rows[i].Cells[0].Value = true;
    }
I can see the value of the cell to be true in the watch window but I am not able to see the checkbox
as checked in the grid, Can anyone let me know what I am missing.
 
Chase

Answers (1)