Home  >  Article  >  Backend Development  >  Example tutorial on using GridView control in Asp.net

Example tutorial on using GridView control in Asp.net

零下一度
零下一度Original
2017-07-09 11:43:521839browse

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!

Statement:
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