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. Image for the cookie policy date

Essential Grid (Databound) row height

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

2 Replies

JL Jean-François Larente 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


AD Administrator Syncfusion Team 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).

Loader.
Live Chat Icon For mobile
Up arrow icon