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

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

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