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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

grid sizing

Thread ID:

Created:

Updated:

Platform:

Replies:

26173 Mar 15,2005 11:09 PM UTC Mar 16,2005 12:46 AM UTC WinForms 2
loading
Tags: GridControl
Steve
Asked On March 15, 2005 11:09 PM UTC

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 16, 2005 12:46 AM UTC

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 16, 2005 12:46 AM UTC

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.

Warning Icon 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.Close Icon

;