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.

Essential Grid (Databound) row height

Thread ID:

Created:

Updated:

Platform:

Replies:

5457 Jul 3,2003 07:27 AM Jul 3,2003 08:35 AM Windows Forms 2
loading
Tags: GridControl
Jean-François Larente
Asked On July 3, 2003 07:27 AM

I have a multiline "Note" field that I would like to display properly. How can I make all lines of my note to display in my grid. i.e. Line 1: This is a multiline note... Line 2: This is line 2 of my note

Jean-François Larente
Replied On July 3, 2003 07:30 AM

I worked it out this way, hopefully there's a "cleaner" way. There will never be hundreds of records in the DB so looping is not so horrible. I'm just hoping to understand for the future. dim iCounter as integer for iCounter = dataview1.table.rows.count-1 dgNotes.Model.RowHeights.ResizeToFit _ (GridRangeInfo.Row(i), _ GridResizeToFitOptions.NoShrinkSize) next

Administrator [Syncfusion]
Replied On July 3, 2003 08:35 AM

The grid.Model.RowHeights.ResizeToFit is the proper method to use. If your rows are contiguous, then instead looping through each row amking multiple calls, you can just make one call and pass the range object as GridRangeInfo.Rows(startRow, endRow).

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.

;