dataGridView1.DataSource = layerDT;
---------------------------------------------------------------------------------------------
I need to add something. Instead of creating a table, I try adding the info directly.
DataGridViewCheckBoxColumn
column = new DataGridViewCheckBoxColumn();
column.HeaderText =
"Visibles";
column.Name =
"Visibles";
dgTOC.Columns.Insert(0, column);
But now I am looping through data and I need to set each Checkbox based on a true or false. How do I add a row for each data item in the array and check the checkbox.
For(int i;i<array.length;i++)
{
if(array[0] .toString()=="True")
//set checkbox in datagrid to true and add row.
}
Thanks a bunch .