Creating a GridView with Resizable Column Headers
I was recently reading Dan Wahlin's excellent 'How To' for creating a GridView extender control. While I was going through his code samples, I thought it might be interesting to create another GridView extender that allows you to resize the column widths of the GridView by clicking and dragging the header cell borders. Before I went down the path of actually implementing the extender control, I wanted to get a feel for what the client side code for handling this might look like. So I quick created a sample application where I added this functionality to the Google Analytics GridView I blogged about in an earlier post. ** Because this sample is a proof of concept, I only tested in IE7. If I move the code to an extender control I will go back and test it with other browsers. Live Demo | Download Before I get into the implementation details, here is a quick screen shot of the grid. ...