Click here to Skip to main content
15,884,975 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
sir.. i have a dropdown in a gridview. i need that when i select dropdown.selecteditem.text="Other" then a new textbox column is created and show in a gridview .
how can i do it.
Posted
Comments
Dilan Shaminda 9-Aug-14 1:51am    
have you tried anything?Any exception?

1 solution

See you can prefer
Put a textbox and your save button below your dropdownlist and show that on your dropdwonselected indexchagned event.
You can show after getting row index
and you will get that row index in your rowcommand or
protected void drp_SelectedIndexChanged(object sender, EventArgs e)
    {
GridViewRow row = (GridViewRow)((DropDownlist)sender).NamingContainer;
Textbox txt=(TextBox)row.FindControl("TxtID");
txt.Visible=true;
}

Try on this way
 
Share this answer
 

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