check box checked and unchecked

Last post 04-11-2008 2:53 AM by sasi.k. 3 replies.

Sort Posts:

  • check box checked and unchecked

    04-09-2008, 5:29 AM
    • Loading...
    • santhi99
    • Joined on 04-09-2008, 5:25 AM
    • Posts 22

    hi..i created the checkboxes for  datagridview which displays at run time... "when i click on 1st checkbox it is checking and when i click on 2nd checkbox its also checking but my requirement is "when i click on 2nd checkbox  the 1st checkbox "TICKMARK(checked)" want to become false(unchecked)".. plz give help in c#.net

    santhi
    Filed under:
  • Re: check box checked and unchecked

    04-09-2008, 6:39 AM
    Answer
    • Loading...
    • anthonypj
    • Joined on 05-11-2007, 3:31 PM
    • Posts 172

    i would suggest that you are using the wrong control here , it would be easier to use a radio button list control

    ie <asp:RadioButtonList id=RadioButtonList1 runat="server">
                <asp:ListItem>Yes</asp:ListItem>
                <asp:ListItem>No</asp:ListItem>
         </asp:RadioButtonList>

    This will give you the functionality you require only allowing one selection

  • Re: check box checked and unchecked

    04-09-2008, 7:02 AM
    Answer
    • Loading...
    • santhi99
    • Joined on 04-09-2008, 5:25 AM
    • Posts 22

    no i've 2 do with checkbox only?plz help for checkboxes.............

    santhi
  • Re: check box checked and unchecked

    04-11-2008, 2:53 AM
    • Loading...
    • sasi.k
    • Joined on 03-26-2007, 8:27 AM
    • Posts 190

    Hi,

    The Check box is must then write some logic javascript.to do your needs.

     

    Regards,
    Sasi

    Please remember to click "Mark as Answer" on this post if it helped you.
Page 1 of 1 (4 items)