Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はこれを試しましたが、null値を与えて機能しません:このコードで何を変更する必要があるか教えてください.
protected void Button1_Click(object sender, EventArgs e) { GridViewRow row; row = dgData.Rows[0]; DropDownList ddl= (DropDownList)(row.Cells[1].FindControl("ddlCol1")); }
使用する
DropDownList ddl= (DropDownList)(row.FindControl("ddlCol1"));
そして私に知らせてみてください