Click here to Skip to main content
15,884,473 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
DropDownList SelectedIndexChanged in gridview
Posted

C#
Protected void change(Object Sender,EventArgs a)
{
DropDownList lst1=(DropDownList)(sender);
string txt=lst1.Text;
GridViewRow gr=(GridViewRow)lst1.NamingContainer;
int i=gr.RowIndex;
string s=Gridvew1.Rows[i].Cells["CellNo"].Text;
}

create 1 function and call this event from Item Template Dropdowlist SelectIndexChange and your will get dropdown selected values
 
Share this answer
 
v2

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