CheckBox and GridView

Discussion in 'ASP .Net' started by Jason Huang, Jul 6, 2007.

  1. Jason Huang

    Jason Huang Guest

    Hi,

    In my ASPNET2.0 C# webform, I have a GridView1 which has CheckBox1 on it.
    If the GridView1 has 10 rows, is it possible to restrict the GridView to
    have just one CheckBox checked?
    given that the CheckBox1's AutoPostBack is not true.
    I am thinking using the JavaScript to accomplish this purpose, but I don't
    handle the JavaScript well at this moment.
    Thanks for help.


    Jason
     
    Jason Huang, Jul 6, 2007
    #1
    1. Advertising

  2. Hello Jason,

    > Hi,
    >
    > In my ASPNET2.0 C# webform, I have a GridView1 which has CheckBox1 on
    > it.
    > If the GridView1 has 10 rows, is it possible to restrict the GridView
    > to
    > have just one CheckBox checked?
    > given that the CheckBox1's AutoPostBack is not true.
    > I am thinking using the JavaScript to accomplish this purpose, but I
    > don't
    > handle the JavaScript well at this moment.
    > Thanks for help.
    > Jason
    >


    Why don't you use Radiobuttons ?
    It is not common to bind radiobutton list and i'm posting you some articles
    describing how this can be acomplish

    http://www.codeproject.com/aspnet/How_group_RButtons.asp
    http://www.codeproject.com/aspnet/RadioButtonList_Demo.asp

    regards
    Martin
     
    martin marinov, Jul 6, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. tshad
    Replies:
    0
    Views:
    532
    tshad
    Apr 15, 2005
  2. Vikram

    disable checkbox list checkbox

    Vikram, Jan 25, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    1,407
    ThunderMusic
    Jan 25, 2006
  3. =?Utf-8?B?RG90TmV0RGV2?=

    DataGrid and embeded Checkbox..How to find if checkbox clicked

    =?Utf-8?B?RG90TmV0RGV2?=, Oct 6, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    831
    David Wier
    Oct 6, 2006
  4. Jason Huang
    Replies:
    0
    Views:
    559
    Jason Huang
    Jun 29, 2007
  5. Joey Pang
    Replies:
    4
    Views:
    524
    Joey Pang
    Jun 13, 2005
Loading...

Share This Page