Get the cell value of a GridView row

后端 未结 8 1044
灰色年华
灰色年华 2021-01-01 18:23

I am using the GridView - AutoGenerateSelectButton = \"True\" to select the row in order to get the Column 1 cell value.

I have tried:

         


        
8条回答
  •  隐瞒了意图╮
    2021-01-01 19:04

    string id;
    foreach (GridViewRow rows in grd.Rows)
    {
       TextBox lblStrucID = (TextBox)rows.FindControl("grdtext");
       id=lblStrucID.Text
    }
    

提交回复
热议问题