473,326 Members | 2,111 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

disabling a gridview fields when radiobutton is clicked

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
0 1211

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

Similar topics

9
by: Mark | last post by:
I have a working PHP/MySQL application used for data entry. The data entry screen includes a "Save" button. The PHP code for this button looks like this: if (isset($_POST)) { if ($_POST ==...
2
by: Mark Perona | last post by:
I created an ASP.net form with an editable datagrid on it. I can create new records, and update and delete existing records. The problem I have is that I want a field in the grid to be editible...
0
by: Wayne Wengert | last post by:
I have an ASP.NET/VB page with a table that contains radiobuttons in a couple of columns of each row. The groupname of all the radiobuttons is the same (I want the user to be able to select only...
2
by: keithb | last post by:
Is there some way to persist the header when a GridView control has no rows containing data? Thanks, Keith
0
by: ABC | last post by:
How to make change one frame size (width) when I clicked a button on anothoer frame?
2
by: meenu_susi | last post by:
i have two links as imagelink textlink when a user click imagelink then textlink has to get disabled and if user click textlink the imagelink has to get disabled... how to do this.. can...
1
by: Sofie | last post by:
hi, i have a form with a lot of fields on it. I would like to enable/disable all these fields using a checkbox. Is there a way to do this (perhaps using a loop mayb), without having to name each...
1
by: pdesh3 | last post by:
Hi, I am not getting any idea how to implement this: I have a form for which I need to create a top banner kind of the thing on top section of the Form. It should contain the feilds as...
2
by: J | last post by:
I'm trying to highlight a gridview row when it is clicked. Because the gridview is populated via ajax, adding attributes using OnRowCreated doesn't work. How can I best accomplish this? Thanks.
3
by: ahling | last post by:
Hi again. I have questions to ask. 1. It's not necessary that I write codes to bind the database to the gridview? 2. Why is it that when I try to view the gridview in the browser it shows me...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.