The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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
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
ADAdministrator Syncfusion Team July 3, 2003 07: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).