views:

40

answers:

1

currently I am using few generic functions/methods in gridview for Sorting Images and Getting Header Row in TH and merge Header Row.

http://geekswithblogs.net/ram/archive/2006/07/13/GridViewGenericSortImagesFunction.aspx http://marss.co.ua/MergingGridViewHeaderColumns.aspx

problem is i have to write these function for every Grid. I looking for solution, Where I can define these behaviors only at one place.

A: 

Create an object that inherits from the GridView. Add your properties and functionality to that new object. On your page add that new object instead of the GridView. And if you go totally nuts like I did, you can end up creating a totally different control. See the GridViewTree.

JBrooks