?
Solved

datagrid resize vb.net

Posted on 2006-07-14
6
Medium Priority
?
538 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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 2000 total points
ID: 17114589
>>
Is there an event when the main mdi window is stretched?
<<

Resize

Roger
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

850 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