You can also use for
for (int i = 0; i <mydatagrid.Items.Count; i ++)
{
string data = mydatagrid.Items [i] .Cells [0] .Text;
string col = mydatagrid.Items [i] .FindControl ("Yourcontrol");
}
for (int i = 0; i <mydatagrid.Items.Count; i++)
{
string data = mydatagrid.Items[i].Cells[0].Text;
string col = mydatagrid.Items[i].FindControl("Yourcontrol");
}