foreach
( DataGrid dgi
in
yourDataGrid.Items )
{
TextBox tb = ( TextBox ) dgi.FindControl (
"yourTextBoxId"
);
tb.Text....
}