We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

grid sizing

Thread ID:

Created:

Updated:

Platform:

Replies:

26173 Mar 15,2005 06:09 PM Mar 15,2005 07:46 PM Windows Forms 2
loading
Tags: GridControl
Steve
Asked On March 15, 2005 06:09 PM

How can I size the grid control to be the size of the actual grid? (I''m trying to avoid gray space at the bottom and to the right) Thanks, Steve

Administrator [Syncfusion]
Replied On March 15, 2005 07:46 PM

You can try setting its ClientSize to be sum of the colwidths and the rowheights. Dim width As Integer = Me.gridControl1.Model.ColWidths.GetTotal(0, Me.gridControl1.ColCount) Dim height As Integer = Me.gridControl1.Model.RowHeights.GetTotal(0, Me.gridControl1.RowCount) Me.gridControl1.ClientSize = New Size(width, height)

Administrator [Syncfusion]
Replied On March 15, 2005 07:46 PM

You can try setting its ClientSize to be sum of the colwidths and the rowheights. Dim width As Integer = Me.gridControl1.Model.ColWidths.GetTotal(0, Me.gridControl1.ColCount) Dim height As Integer = Me.gridControl1.Model.RowHeights.GetTotal(0, Me.gridControl1.RowCount) Me.gridControl1.ClientSize = New Size(width, height)

CONFIRMATION

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.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;