Hello,
I am having difficulty auto sizing my columns. I want fill the whole grid view but have the the columns with the 3 abbreviations (BSA, GIS, ETC) to be small always. When set to .AutoSizeColumnsMode = Telerik.WinControls.UI.GridViewAutoSizeColumnsMode.Fill and .MasterTemplate.BestFitColumns() it is stretching out the WEB column. Is there a way to only allow the stretching to occur evenly on the first 4 columns but have the last 7 columns be small? Thanks!
Hello Bill,
Setting the AutoSizeColumnsMode property to Fill will calculate equal sizes for each of the columns. They are expected to be set to such values that the available space in the grid table element is filled completely. Setting the Width property of the columns to give them fix size will prevent the auto-fill calculations when the grid's size is changed.
The possible solution that I can suggest if you want to restrict width for some of the columns is to set the AutoSizeColumnsMode property to None and specify the width for each column according to your requirements. Thus, you can simulate the Fill behavior by adjusting the width only for those columns that you want to shrink/widen considering the total width of RadGridView. When the grid is resized, it is necessary to adjust the columns' width as well.