Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
2611 | Feb 4,2003 08:18 PM UTC | Feb 5,2003 04:59 PM UTC | WinForms | 4 |
![]() |
Tags: GridControl |
this.gridControl1.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
If your form has other controls on it, and you anchor the grid on all four side, any controls below or to the right should be re-anchored to the bottom-right. The default setting anchors all controls to the top-left of a form.
Or, if your grid occupies the whole form, you can just set its DockStyle property to Fill, and it will always fill the form's client area as you size the form.
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.