Extend the gridview function to easily freeze rows and columns (enhanced ).

Source: Internet
Author: User

Extend the gridview function to easily freeze rows and columns (enhanced ).

As mentioned in the previous article, you can also expand the pagination function of the gridview and implement the function of exporting results to EXCEL/PDF. After implementation, it should be encapsulated to facilitate the simple use of subsequent projects. I don't have to say too much about how to implement it. The following shows the result and main code. If you have any questions, leave a message. The following describes how to encapsulate the corresponding functions in a separate project (ZZControls. In this way, the DLL can be directly referenced after being generated.

The following one is displayed. The red line is frozen (refer to the previous article ).

 

 

All of this is quite simple to set up on the front-end. Only one attribute is required. The default value is false, indicating that the attribute is not displayed.

The background code is also quite simple. Just a few simple sentences.

How is it quite convenient? The following is the main implementation code. For more information, see. (If you study the code carefully, other attributes are also easy to set)

 

GrdNavigate.zip

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.