Solved

datagrid resize vb.net

Posted on 2006-07-14
6
528 Views
Last Modified: 2010-05-18
Is there a way to allow the user to resize a datagrid?
0
Comment
Question by:jackjohnson44
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

 
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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

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 …
Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

696 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