2009-05-06 6 views

답변

0

이 ... 당신이 루프 필요가 없습니다를 ...

protected void GridView1_RowCommand(Object sender, GridViewCommandEventArgs e){ 
    if (e.CommandName == "thiscommandname") { 
     int index = Convert.ToInt32(e.CommandArgument); 
     GridViewRow selectedRow = ((GridView)e.CommandSource).Rows[index]; 
     //and then for example... 
     string rowText = (LinkButton)selectedRow.Cells[0].Controls[0]).Text;} 
} 
관련 문제