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:


4 comments:

Anonymous said...

Hello. This post is likeable, and your blog is very interesting, congratulations :-). I will add in my blogroll =). If possible gives a last there on my site, it is about the CresceNet, I hope you enjoy. The address is http://www.provedorcrescenet.com . A hug.

Nasser Hamdan said...

Thanks, i actually just started the blog,, hope that will add more in future.

Anonymous said...

Hello. This post is likeable, and your blog is very interesting, congratulations :-). I will add in my blogroll =). If possible gives a last there on my blog, it is about the Livros e Revistas, I hope you enjoy. The address is http://livros-e-revistas.blogspot.com. A hug.

Anonymous said...

hi....

can u help me out...?

i m using gridview in tht i used hyperlink want to pass 2 variable or querystring so convert to template field...can i hve the idea how do i pass 2 querystring in template field?? plz help me