Click here to Skip to main content
15,884,237 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am using dropdown list inside the obout grid but unable to control grid column on basis of drop down list selection, can any help me in this regard?
Below code i tried, its working fine however if i select "Yes" then there should be column enable for edit inside the grid otherwise disable.

What I have tried:

<asp:dropdownlist autopostback="false" id="DDL" runat="server">
<asp:listitem value="Yes" text="Yes">
<asp:listitem value="No" text="No">
Posted
Updated 19-May-20 23:53pm
Comments
Varun Sareen 20-May-20 5:49am    
what have you tried so far friend?

1 solution

Dear Friend,

If you have searched in google for the same you would have got thousand of links with solution.

For your reference: text box enable disable on drop down valeu selection in asp grid - Google Search[^]

To be more precise: Enable Disable TextBox inside GridView based on DropDownList Selection in ASP.Net | ASPForums.Net[^]

I hope the above mentioned links help in resolving your issue. Please accept this as your solution if it really helps.

Regards
Varun
 
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