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