Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 186
  • Last Modified:

GridView Created a by C# Windows Application

How can you make a GridView fill  and ensure the columns spread across the Grid with showing the column content fully?

Capture.PNG
0
metro156
Asked:
metro156
  • 3
  • 3
2 Solutions
 
Kyle AbrahamsSenior .Net DeveloperCommented:
In your designer expand the grid to be the size of the form.  Then set the Grid's left and right anchors.  This will make the grid's edges be the same distance as the form resizes.

In addition you can modify the column's AutoSizeMode and fill weight as necessary to give more width to the columns that are needed.
0
 
metro156Author Commented:
I will try to see if that works tomorrow. Can you anchor to a Collapsible Panel instead of a Form?
0
 
Kyle AbrahamsSenior .Net DeveloperCommented:
Yes.  Anchor will work on any control container.  (Panel, Group Box, SplitContainer, etc.)
0
Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

 
Kyle AbrahamsSenior .Net DeveloperCommented:
Scrollbars will only appear if they need to be there.  Try shrinking the window.
0
 
metro156Author Commented:
Shrinking the window does not turn on scrollbars. I'll open a new question in regards to this.
0
 
metro156Author Commented:
I did notice when I did this that the scrollbars do not work. Is this a side affect of doing this Fill?
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now