Click here to Skip to main content
Licence 
First Posted 3 Nov 2004
Views 62,186
Bookmarked 44 times

Scrollable Resizable Datagrid

By | 3 Nov 2004 | Article
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

About the Author

Pedro Maia Costa

Web Developer

Portugal Portugal

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
Generallink for msdn & project is not working Pinmemberrama charan3:45 10 Dec '07  
Generalimage buttons on grid vanishing [modified] PinmemberMadhu Kampurath20:29 23 May '06  
GeneralbodyHeight - unknown element of DataGrid PinmemberFinallyInSeattle11:26 24 Apr '06  
QuestionDoesnt display properly when the datagrid is empty PinmemberCavebaby20:37 18 Jan '06  
Questiondoes't workwell for gridview Pinmembervenkatapb.rao@gmail.com20:50 25 Aug '05  
GeneralDoesn't work with a DataGrid using an absolute position ... Pinmemberbruno_calderan2:11 18 Aug '05  
GeneralDynamic Columns PinmemberStrattonN7:37 20 May '05  
GeneralCROP text in datagrid Pinmembercoolvaas9:17 16 Apr '05  
GeneralRe: CROP text in datagrid PinmemberPedro Maia Costa22:13 19 Apr '05  
GeneralNão funciona Pinmemberfelipedrumond5:21 5 Nov '04  
GeneralRe: Não funciona PinmemberPedro Maia Costa1:03 12 Nov '04  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web04 | 2.5.120528.1 | Last Updated 3 Nov 2004
Article Copyright 2004 by Pedro Maia Costa
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid