disabling a gridview fields when radiobutton is clicked

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sumanaMalladi
    New Member
    • May 2012
    • 1

    disabling a gridview fields when radiobutton is clicked

    Code:
    <center>
    <table border="1">
    <tr>
    <td align="center" colspan="5">
        <asp:Label ID="Label1" runat="server" Text="Zonewise Bin Tracking" 
            Font-Bold="True" Font-Size="Large" style="color: #4A3C8C; font-weight: 700"></asp:Label>
    </td>
    </tr>
    <tr>
    <td>
        <asp:Label ID="lbl_zone" runat="server" Text="Zone"></asp:Label>
    </td>
    <td>
        <asp:DropDownList ID="ddzone" runat="server">
        </asp:DropDownList>
    </td>
    <td>
        &nbsp;&nbsp;
        <asp:Label ID="lbl_shift" runat="server" Text="Shift"></asp:Label>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    </td>
    <td>
        <asp:RadioButtonList ID="rbn_shift" runat="server" RepeatDirection="Horizontal">
            <asp:ListItem>Day</asp:ListItem>
            <asp:ListItem>Afternoon</asp:ListItem>
            <asp:ListItem>Night</asp:ListItem>
        </asp:RadioButtonList>
    </td>
    <td>
        <asp:Button ID="btn_getdata" runat="server" Text="GetData" 
            onclick="btn_getdata_Click" />
    </td>
    </tr>
     &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;
    <tr>
    <td colspan="5">
    <asp:GridView ID="Grid_zonewise" runat="server" BackColor="White" 
            BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" 
            CellSpacing="1" GridLines="None" AutoGenerateColumns="false" Height="87px" 
            Width="500px">
        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
        <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
        <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
        <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#F1F1F1" />
        <SortedAscendingHeaderStyle BackColor="#594B9C" />
        <SortedDescendingCellStyle BackColor="#CAC9C9" />
        <SortedDescendingHeaderStyle BackColor="#33276A" />
        <Columns>
        <asp:BoundField DataField="zone_name" HeaderText ="Zone" />
         <asp:BoundField DataField="D_T" HeaderText="Target" />
                <asp:BoundField DataField="D_P" HeaderText="Performed" />
                <asp:BoundField DataField="D_B" HeaderText="Balance" />
        </Columns>
        </asp:GridView>
        </td>
    </tr>
    
        
    </table>
    </center>
Working...