Solved

datagrid resize vb.net

Posted on 2006-07-14
6
523 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
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
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…
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.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

831 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