This code is about a Generic User Control made for GridView which can handle all the generic functionalities
I am working for a project which uses a lot of GridView. Every GridView has different functionality. For example, few are view only, few have checkboxes only, and few are sortable, few needs paging facility and so on. So we thought to create a GridView whose properties can be driven from the database or configurable simply by reading from a file like web.config. A consumer of the GridView would know nothing about the GridView in advance, such as header, footer, column name, field name and so on; all would come from the database or config file. Even the client side functionality like javascript code, inside the child control of the GridView would be fetched by database. In short, GridView should be generic enough to cover all the functionalities of a regular GridView.
A brief description of how to use the article or code. The class names, the methods and properties, any tricks or tips.
Blocks of code should be set as style "Formatted" like this:
// // Any source code blocks look like this //
Remember to set the Language of your code snippet using the Language dropdown.
Use the "var" button to to wrap Variable or class names in
<code> tags like this
.
Did you learn anything interesting/fun/annoying while writing the code? Did you do anything particularly clever or wild or zany?
Keep a running update of any changes or improvements you've made here.