Click here to Skip to main content
15,896,348 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to hide the visibility of dropdown list box by checkbox inside gridview please anyone help

Thank you
Posted
Updated 9-Oct-11 15:28pm
v2
Comments
[no name] 9-Oct-11 21:47pm    
Are the dropdown and checkbox in the same grid row?
hitech_s 10-Oct-11 0:20am    
which dropdown you want hide.
where exactly chekbox and dropdown located?
CodingLover 10-Oct-11 0:34am    
Do you want to hide a dropdown on check box checked in a grid? Please provide more details.

1 solution

Use the Template column for binding the control.

In the GridView_RowDataBound event you can find the specific control from GridViewRow and set the visibility.

DropDownList drpList = gridRow.FindControl("ID") as DropDownList;
//add some condition if you have something
drpList.Visible = false;

Hope it helps..

Regards

Rafeeque
 
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