You can set the rowindex throug command argument as
CommandArgument='<%#Eval((GridViewRow)Container.RowIndex))%>'
From Code behind,
int index=convert.toint32(e.commandargument.tostring());
label lbl=(label)gridview1.rows[index].findcontrol("Labelnam");
string name=lbl.text;