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

display column( width) problem

1 Answer 156 Views
GridView
This is a migrated thread and some comments may be shown as answers.
nitin b
Top achievements
Rank 1
nitin b asked on 21 Jan 2010, 06:28 PM
 GridViewTemplate childTmpt = new GridViewTemplate();

I want to set childTmpt column width as 100% as in that i want to show 30 columns with full width and this is childgrid.

rgdView.MasterGridViewTemplate.ChildGridViewTemplates.Add(childTmpt);

I dont' want to use childTmpt.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill; property

is there any way to set column width 100%.



Thanks in advance.

Please reply me.

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 25 Jan 2010, 10:10 AM
Hello nitin b,

Currently RadGridView doesn't support such column sizing mode. You can use either Fill mode, where columns are resized to fit to the available space, or you can call BestFitColumns method to calculate their optimal width. However, you can also set the width manually by setting the Width property of GridViewColumn. Please describe the exact behavior that you want to achieve and we will take it in consideration when planing our future releases.

Should you have any other questions, don't hesitate to write back.

 

Best wishes,
Jack
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
nitin b
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or