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

Changing RowHeigths for different record types.

Hello! I have datatable in which "Type" column can have 3 different values. New records are adding to the table every second and are displayed on grid''s first row (descend sorting). Based on "Type" values I display records in GridDataBoundGrid with different colors and fonts. But not all records fit into row height. I have tryed to change row height throught gdbg.Model.RowHeight[index], but it is slow. Is any ways to change row height more quickly? Best regards.

1 Reply

AD Administrator Syncfusion Team August 25, 2004 12:15 PM UTC

You can try subscribing to the grid.Model.QueryRowHeight event and dynamically set the row height on demand. In the event, you would check e.Index and decide what row height is needed, and then set e.Size to that value and set e.Handled = true. You would NOT set values into grid.Model.RowHeights as this would still slow things down.

Loader.
Live Chat Icon For mobile
Up arrow icon