Click here to Skip to main content
15,886,080 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
hi!dudes,
can i know how to directly get the rowindex of a gridview in the SelectedIndexChanged event of the dropdownlist present in the gridview.
help ne ouuuuuut.
it's urgent.
T.Q.
regards..
Posted
Comments
Ankur\m/ 16-Jun-10 5:37am    
Reason for my vote of 2
Do not cross-post. You have already posted it in ASP.NET forum.

1 solution

C#
DropDownList dllist=(DropDownList)sender;
GridViewRow gr = (GridViewRow)dllist.NamingContainer;
 
Share this answer
 
v2
Comments
PSK_ 16-Jun-10 5:34am    
use pre tags for your code blocks.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900