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.
Syncfusion Feedback

Change all rows height

Thread ID:

Created:

Updated:

Platform:

Replies:

18304 Aug 27,2004 11:14 AM UTC Aug 27,2004 12:14 PM UTC Windows Forms 1
loading
Tags: GridControl
Jorge
Asked On August 27, 2004 11:14 AM UTC

To resize a row in GridDataBoundGrid I use gridModel.RowHeights.Item(rowindex)=myheight and that works for a single row. When I want to set the same height to all rows I use a For/Next cycle like this Dim i As Integer For i = 0 To gridModel.RowCount gridModel.RowHeights.Item(i) = 50 Next but the problem is when I insert a new row using the AddNew method because the new row height is not the same. How can I solve this problem?

Administrator [Syncfusion]
Replied On August 27, 2004 12:14 PM UTC

Any new / inserted rows will use the this.gridControl1.DefaultRowHeight property. Also, any rows which have not had the RowHeights explicitly set will also use this property. So, if you want all/most of your rows to have the same height, you probably would be better off not looping through, and explicitly setting each grid.RowHeight[row] value, but instead just setting the default value, this.gridControl1.DefaultRowHeight.

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

;