Posted on: 7/21/2014 11:33:36 AM | Views : 460

Hi,
There is a column whose value is coming from a table, and it is displayed in a gridview. I want the value to be displayed in gridview only when the user selects the radio button to yes. And there are two radiobuttons YES & NO. I tried with giving label in a template field but didnt worked for me.
Please see the code for your reference.:- 
<asp:TemplateField HeaderText="Salary" HeaderStyle-CssClass="c_width"> <ItemTemplate> <%# Eval("SalaryRange") %>&nbsp; lakhs per annum </ItemTemplate> </asp:TemplateField>
<asp:RadioButton ID="rbButtonYes" runat="server" Text="Show" GroupName="colors" /> &nbsp;&nbsp; <asp:RadioButton ID="RadioButton1" runat="server" Text="Not Show" GroupName="colors" />


Go to the complete details ...