I am using two dropdownlist in gridview. Total 5 to 7 rows in gridview.
Bind ProductId and product name in First Dropdown. when select product that time databound in second dropdown.
so how to findout row number when fire dropdown’s event.
I am using two dropdownlist in gridview. Total 5 to 7 rows in gridview.
Share
I assume the property you’re looking for is
GridViewRow.RowIndex. To get the reference to the row from theSelectedIndexChangedevent from your DropDownLis(s), you can use it’sNamingContainerproperty: