I have a Datagrid in image below.
[url=http://www.freeimagehosting.net/][img=http://www.freeimagehosting.net/uploads/60d1ac6210.jpg][/url]
I can't find row Index in Datagridview when I call a event in DropDownList.
The code is:
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");
//...
}
Please give me solution.