while I was trying to convert my Database to a Datatable, I found information about about how to add Columns to a Database. The Code looked a little like this:
string it;
DataTable another_tranTab = new DataTable();
another_tranTab.Columns.Add("Column1", typeof(String));
int a = 0;
int b = 0;
while (a < tranTable.Rows.Count)
{
it = Convert.ToString(tranTable.Rows[a][0]);
if (it == "False")
{
DataRow newRow = another_tranTab.NewRow();
newRow["Column1"] = a;
another_tranTab.Rows.Add(newRow);
b = b + 1;
}
a++;
}
My question is what this part stands for it = Convert.ToString(tranTable.Rows[a][0]);
I don't really understand what the [0]
stands for.