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.

Variable row heights

Thread ID:

Created:

Updated:

Platform:

Replies:

3082 Feb 28,2003 11:07 AM Mar 2,2003 05:05 PM Windows Forms 1
loading
Tags: GridControl
Sean Greer
Asked On February 28, 2003 11:07 AM

This may have been covered before, but I couldn't find the solution in the archive. I have a grid that contains notes for an account. The columns are laid out on two "rows": "Date","Type","Reason","Creator",".","Text", "-", "-", "-" The columns Date, Creator and Text columns are static, and the remaining are ComboBox cells. I am manually setting the widths of the columns. What I want is for all of the text in the Text column to be displayed. To this end I have configured the GridBoundColumn like this: gbc = new Syncfusion.Windows.Forms.Grid.GridBoundColumn(); gbc.MappingName = "Text"; gbc.HeaderText = "Note Text"; gbc.StyleInfo.CellType = "Static"; gbc.StyleInfo.AutoSize = true; gbc.StyleInfo.WrapText = true; Then once the DataSet has been filled, I call this method in my attempt to get the RowHeights adjusted: this.m_sdgAccountNotes.Model.RowHeights.ResizeToFit(GridRangeInfo.Table(), GridResizeToFitOptions.NoShrinkSize); End result is that only a single line of text is shown regardless of the amount of text in the Text column for each row. What am I missing? Thanks, Sean

Administrator [Syncfusion]
Replied On March 2, 2003 05:05 PM

The multirowrecords rely on a covered cell pattern, and your resize call does not include the ResizeCoveredCell flag in the GridResizeToFit options that you passed in. So, that might be the problem. Try adding this flag in your ResizeToFit call. gridModel.RowHeights.ResizeToFit(GridRangeInfo.Table(),GridResizeToFitOptions.ResizeCoveredCells|GridResizeToFitOptions.NoShrinkSize);

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.

;