This is a migrated thread and some comments may be shown as answers.

RadGridView column FillWeight

1 Answer 64 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sofia
Top achievements
Rank 1
Sofia asked on 19 Jun 2008, 08:27 AM
Hi,

I have used a radGridView with the autosizecolumnmode set to "fill". I want to use fillweight property to control the percentage of column widths in the grid. But I cant find the fill weight property. How can I set fillweight property for a column in the winform readgridview?

kind regards..

1 Answer, 1 is accepted

Sort by
0
Kiril
Telerik team
answered on 19 Jun 2008, 02:52 PM
Hello Sofia,

Thank you for writing.

Currently, RadGridView does not support a fill mode which uses a part of the total width of the control. Still, you can implement this fill mode yourself, by setting the width of each column to a share of the width of the control.

You also have to handle the ColumnWidthChanged event of the RadGridView, which is fired everytime a column is resized at runtime. In the handler you have to set column widths so that the column width sum is kept equal to a certain part of the total width everytime a column is resized.

If you have any additional questions, please let me know.

Sincerely yours,
Kiril
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
GridView
Asked by
Sofia
Top achievements
Rank 1
Answers by
Kiril
Telerik team
Share this question
or