CheckBox and GridView

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
 
M

martin marinov

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,708
Latest member
SherleneF1

Latest Threads

Top