CheckBox and GridView

  • Thread starter Thread starter Jason Huang
  • Start date Start date
J

Jason Huang

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
 
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
 
Back
Top