Solved

datagrid resize vb.net

Posted on 2006-07-14
6
513 Views
Last Modified: 2010-05-18
Is there a way to allow the user to resize a datagrid?
0
Comment
Question by:jackjohnson44
6 Comments
 
LVL 8

Expert Comment

by:mani_sai
ID: 17108540
As far i know, you can resize the columns/rows by default.

You can also prevent users from sizing columns.

Regarding resizing the entire datagrid prgrammatically, you can do that.

But allowing users to resize the entire datagrid at run time, i dont think it is possible.

Thanks
0
 

Author Comment

by:jackjohnson44
ID: 17108851
is there a way to stretch it to be the same width of the main window, when it is stretched?
0
 
LVL 34

Expert Comment

by:Sancler
ID: 17112373
Have a look at its .Anchor property.

Roger
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 8

Expert Comment

by:kaliyugkaarjun
ID: 17113763
Hi

Does ur mainwindow have any other controls?


set the datgrid property width = "100%"

It will resize as window is stretched.
0
 

Author Comment

by:jackjohnson44
ID: 17114220
Is there an event when the main mdi window is stretched?
I don't want to just set it to 100%.
I would like it have a border on the side and also have a maximum width
0
 
LVL 34

Accepted Solution

by:
Sancler earned 500 total points
ID: 17114589
>>
Is there an event when the main mdi window is stretched?
<<

Resize

Roger
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now