Visual Basic

Moderators: None (Apply to moderate this forum)
Number of threads: 17974
Number of posts: 55343

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Datagridview questions Posted by findepter on 28 Sept 2008 at 5:32 AM
Hi all, i have two questions re the datagridview.

Firstly, i want to know if its possible to make a datagridview dynamically re-size itself (height only in this instance) when a new row is added. I know that columns etc can autosize, i mean the actual datagridview as a whole.
Having done a quick google i don't think that it is possible but i was hoping somebody here had some idea's.

Secondly, is it possible to have a datagridview work similarly to a spreadsheet? ie: what i want is to have a datagridview to have column headers but also day names on the rows (please see attached pic which will make more sense..) and say that i have monday, tuesday, wednesday etc etc as row names, if i am at row monday, i want to be able to add extra rows below for each day. I know i haven't explained it very well but the pic should be clearer - honest!
Basically, if i have this scenario in Excel, i just 'add new row' below the relevant day and insert my data, i would like to do this using datagridview (in attached pic, the added rows are in blue).


If none of this is possible using datagridview (as i suspect) has anyone any idea's to achieve a similar result?

Thanks in advance.
Attachment: dgv.jpg (242904 Bytes | downloaded 116 times)
Report
Re: Datagridview questions Posted by findepter on 29 Sept 2008 at 11:23 AM
does anybody have any answers/ideas?
:
: Thanks in advance.
:




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.