By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,950 Members | 1,035 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,950 IT Pros & Developers. It's quick & easy.

disabling a gridview fields when radiobutton is clicked

P: 1
Expand|Select|Wrap|Line Numbers
  1. <center>
  2. <table border="1">
  3. <tr>
  4. <td align="center" colspan="5">
  5.     <asp:Label ID="Label1" runat="server" Text="Zonewise Bin Tracking" 
  6.         Font-Bold="True" Font-Size="Large" style="color: #4A3C8C; font-weight: 700"></asp:Label>
  7. </td>
  8. </tr>
  9. <tr>
  10. <td>
  11.     <asp:Label ID="lbl_zone" runat="server" Text="Zone"></asp:Label>
  12. </td>
  13. <td>
  14.     <asp:DropDownList ID="ddzone" runat="server">
  15.     </asp:DropDownList>
  16. </td>
  17. <td>
  18.     &nbsp;&nbsp;
  19.     <asp:Label ID="lbl_shift" runat="server" Text="Shift"></asp:Label>
  20. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  21. </td>
  22. <td>
  23.     <asp:RadioButtonList ID="rbn_shift" runat="server" RepeatDirection="Horizontal">
  24.         <asp:ListItem>Day</asp:ListItem>
  25.         <asp:ListItem>Afternoon</asp:ListItem>
  26.         <asp:ListItem>Night</asp:ListItem>
  27.     </asp:RadioButtonList>
  28. </td>
  29. <td>
  30.     <asp:Button ID="btn_getdata" runat="server" Text="GetData" 
  31.         onclick="btn_getdata_Click" />
  32. </td>
  33. </tr>
  34.  &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;
  35. <tr>
  36. <td colspan="5">
  37. <asp:GridView ID="Grid_zonewise" runat="server" BackColor="White" 
  38.         BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" 
  39.         CellSpacing="1" GridLines="None" AutoGenerateColumns="false" Height="87px" 
  40.         Width="500px">
  41.     <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
  42.     <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
  43.     <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
  44.     <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
  45.     <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
  46.     <SortedAscendingCellStyle BackColor="#F1F1F1" />
  47.     <SortedAscendingHeaderStyle BackColor="#594B9C" />
  48.     <SortedDescendingCellStyle BackColor="#CAC9C9" />
  49.     <SortedDescendingHeaderStyle BackColor="#33276A" />
  50.     <Columns>
  51.     <asp:BoundField DataField="zone_name" HeaderText ="Zone" />
  52.      <asp:BoundField DataField="D_T" HeaderText="Target" />
  53.             <asp:BoundField DataField="D_P" HeaderText="Performed" />
  54.             <asp:BoundField DataField="D_B" HeaderText="Balance" />
  55.     </Columns>
  56.     </asp:GridView>
  57.     </td>
  58. </tr>
  59.  
  60.  
  61. </table>
  62. </center>
  63.  
  64.  
May 5 '12 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.