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

GridView Cells

3 Answers 54 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Fachmann
Top achievements
Rank 1
Fachmann asked on 07 Aug 2008, 08:32 AM
Hi all.
Does anyone know how to make text fit cell's width?
I mean when text length exceeds  cell's width. How to make it fit the width of cell?
Thanks in advance.
Fachmann.

3 Answers, 1 is accepted

Sort by
0
Boyko Markov
Telerik team
answered on 07 Aug 2008, 01:48 PM
Hello Fachmann,

Thank you for contacting us.

I'm sorry to say that, but we do not currently support text wrap mode of grid cells. This feature is in our schedule and we will do our best to implement it for the upcoming release.

If you have any other questions regarding our controls please write me back.

Kind regards,
Boyko Markov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Ryan
Top achievements
Rank 1
answered on 07 Aug 2008, 02:13 PM
Although text wrapping is not available....is there a way to set the column width to automatically be wide enough to show all the text?
0
Martin Vasilev
Telerik team
answered on 08 Aug 2008, 12:16 PM
Hi Ryan,

Thank you for writing.

You could use the BestFitColumns method to set width of columns according their values:
this.radGridView1.MasterGridViewTemplate.BestFitColumns(); 

Please, have in mind that this method changes the column size taking into account only for the visible rows in RadGridView not the whole data.

If you have other questions, do not hesitate to contact me again.

Sincerely yours,
Martin Vasilev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
GridView
Asked by
Fachmann
Top achievements
Rank 1
Answers by
Boyko Markov
Telerik team
Ryan
Top achievements
Rank 1
Martin Vasilev
Telerik team
Share this question
or