Solved

datagrid resize vb.net

Posted on 2006-07-14
6
520 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Close tabpage of custom control 9 34
VB.NET (2008) - Refactoring Question 2 21
VB: Convert 2 dates to specific format 24 48
No Data for DropDown List 2 24
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

770 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