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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Essential Grid (Databound) row height

Thread ID:





5457 Jul 3,2003 11:27 AM UTC Jul 3,2003 12:35 PM UTC WinForms 2
Tags: GridControl
Jean-François Larente
Asked On July 3, 2003 11:27 AM UTC

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 11:30 AM UTC

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 12:35 PM UTC

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).


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon