I am using datagridview for a lot of things and I think it's a really strong data viewer tool. My Problem is, I am using this code:
for (int i = 0; i < dataGridView1.**Columns.Count** - 1; i++)
{
....
}
My question is, what is the difference between dataGridView1.Columns.Count
and dataGridView1.ColumnCount
.
They both return an integer that holds the number of columns in the dataGridView1
I searched only but couldn't find anything. I hope you guy help me.