Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

Scrollable Resizable Datagrid

0.00/5 (No votes)
3 Nov 2004 1  
Based on an MSDN Article, I've changed an HTC to be able to scroll and resize the contents of a datagrid.

Sample Image - Scroll_Resize_Datagrid.jpg

Description

This article is based on an MSDN article.

It is basically an HTC file attached to a DataGrid that rebuilds it, fixing headers, inserting a scroll for the contents. The only difference between this one and the MSDN article is that I�ve added the possibility to stretch the div containing the contents of the DataGrid.

You just need to attach a CSS Style to the DataGrid and define Bodyheight like in the webfom1.aspx file in the source.

I would like to thank the Web Team from MSDN, Mark Davis, Heidi Housten, Jay Allen and Tosh Meston for producing the start of this article.

Updates

  1. Fixed on move out of the window problem.
  2. Added double click event on the resize button to reset to the original position.
  3. Added tooltip on the resize button to explain functionality.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here