In the GridView control, there is a CheckBox control in column 0. Now I want to implement a single selection on the CheckBox. How to achieve it? The following editor will share with you through this article how to use the GridView control to implement the Checkbox radio selection function in Asp.net. Let’s take a look.
In the GridView control, there is a CheckBox control in column 0 , now I want to implement single selection on CheckBox.
Let’s take a look at the effect first:
On the ASPX page, you can do this:
Yes One thing to note is that you need to use OnRowCreated event.
In the ASPX.cs code, implement the OnRowCreated event above:
##There is an event delegate above: Ok, very simple. All are implemented using the server, and perhaps front-end js can also be implemented.The above is the detailed content of Example tutorial on using GridView control in Asp.net. For more information, please follow other related articles on the PHP Chinese website!