2009-05-06 6 views

Antwort

0

Wenn ich verstehe, was Sie fragen ... Sie Schleife brauchen nicht ...

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;} 
} 
Verwandte Themen