更新时间:2023-02-23 23:00:03
循环通过一行GridView
。然后使用row.FindControl(txtYourTextBox);
获取TextBox
。
参考 - 访问内部的不同控件GridView控件 [ ^ ]。
how do you get the id from the textboxes inside gridview, cuz i dont know how get them, thank you, sorry for my english
Loop through the Rows ofGridView
. Then userow.FindControl("txtYourTextBox");
to get theTextBox
.
Refer - Accessing the different controls inside a GridView control[^].