RadGridView - Constrain Autosizing of Columns and Rows

0 Answers 9 Views
GridView
Clint
Top achievements
Rank 1
Iron
Iron
Iron
Clint asked on 30 Jun 2025, 07:40 PM

I have a RadGridview displaying data from a datatable using autogenerated columns. I have EnableColumnVirtualization="True" and EnableRowVirtualization="True". When I scroll through the grid, columns and rows are autosizing to display data and everything looks good for the most part.

However, I have some columns that can be excessively wide, easily twice the width of the screen. The same for rows, I occasionally have a cell where the row is excessively high.

How can I set a max width for column and row to prevent excessively wide columns or tall rows? I tried setting MaxHeight and MaxWidth, but that also constrains the user to those settings if they do intentionally want to increase those values.

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Clint
Top achievements
Rank 1
Iron
Iron
Iron
Share this question
or