Example tutorial on using GridView control in Asp.net

零下一度
Release: 2017-07-09 11:43:52
Original
1832 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template