int count = 0;
for (int i = 0; i < this.TableData.Rows.Count; i++)
{
if (this.TableData.Rows[i].Cells[0].FormattedValue.ToString() == "True")
{
count++; }
}
MessageBox.Show(count.ToString());
for (int i = 0; i < this.TableData.Rows.Count; i++)
{
if (this.TableData.Rows[i].Cells[0].FormattedValue.ToString() == "True")
{
count++; }
}
MessageBox.Show(count.ToString());