Windows Develop Bookmark and Share   
 index > Windows Forms General > DataGridView resize on Form maximize
 

DataGridView resize on Form maximize

I have an empty DataGridView on my form that has a height and width of say "x" pixels. When I maximize my form, the empty DataGridView still has the same width and height attributes. Is there any way for the empty DataGridView to auto resize when I maximize my form to have the same height but now a different width because the form was maximized?
charlesd1181  Wednesday, January 14, 2009 1:23 PM

charlesd1181 said:

...] Is there any way for the empty DataGridView to auto resize when I maximize my form [...

The same as for any control:

Use the Anchor property (available in designer) or Dock property (also available in designer)


no need for a sig
KomplexoR  Wednesday, January 14, 2009 1:40 PM
yes try Anchor, Left, Right
Arjun Paudel
Arjun Paudel  Wednesday, January 14, 2009 1:51 PM

charlesd1181 said:

...] Is there any way for the empty DataGridView to auto resize when I maximize my form [...

The same as for any control:

Use the Anchor property (available in designer) or Dock property (also available in designer)


no need for a sig
KomplexoR  Wednesday, January 14, 2009 1:40 PM
yes try Anchor, Left, Right
Arjun Paudel
Arjun Paudel  Wednesday, January 14, 2009 1:51 PM

You can use google to search for other answers

Custom Search

More Threads

• C# to VB.Net Conversion problem
• how to work with jooming properties of the webcam
• ToolStripMenuItem Activate property issue
• Open Source Code
• Link column with windows Gridview control
• NotifyIcon in System Tray die all of sudden
• Multi Lingual Q
• Microsoft Word 2002 Microsoft Visual Basic issue....
• Force windows to paint it's self when child window moves
• In C#, does the TreeView control have the event TreeNodePopulate?