-2

こんにちは、エラーが発生InvalidCastException unhandledしています。この問題を解決するのを手伝ってください。

string att = ((DropDownList)GridView1.Rows[e.RowIndex].Cells[0].Controls[0]).Text;

4

1 に答える 1

0

FindControlを使用してみてください

 DropDownList idCombo = (DropDownList)GridView1.Rows[e.RowIndex].Cells[0].FindControl("comboID");

 string att = idCombo.SelectedValue; 
于 2013-05-20T11:33:21.940 に答える