Monday, January 7, 2008

Custom Grid View

I think GridView is the most thing that will be used in any standard .Net project, but when we are using grid in our applications, we remember (after doing so many pages) that we want this gridView to have certain functionality like Google paging style, mouse hover coloring ..etc. So we end up by copying the same functionality in every page that contains same control !

To avoid this we have to create an inherited control class from gridview, and extend our functionality on it.

I have created a sample gridview that have the following functionality:

1- Google Style paging
2- Row Mouse Hover coloring.
3- Row Mouse Click Coloring.

And the main feature is that the idea of adding any new functionality once and not replicating it.

I will attach link to sample project to my created gridview as custom control. You can just download this project and understand the whole idea.


Sample Screen Shot: