當我在DropDownList中調用事件時,我無法在Datagridview中查找行索引。在ASP.NET的Datagridview中找不到行索引?
的代碼是:
protected void DescriptionOfProduct_SelectedIndexChanged(object sender, EventArgs e)
{
DropDownList _DescriptionOfProduct = (DropDownList)gvSales.FindControl("DescriptionOfProduct");
Label _Unit = (Label)gvSales.FindControl("Unit");
Label _PriceType = (Label)gvSales.FindControl("PriceType");
//...
}
請給我的解決方案。
是GridView控件內的下拉列表? – Aaron 2010-02-12 16:08:15
是 http://www.freeimagehosting.net/image.php?038af0f2db.jpg – Nasir 2010-02-12 16:10:49