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

Grid Alignment Issue

1 Answer 85 Views
Grid
This is a migrated thread and some comments may be shown as answers.
JAYASON TV
Top achievements
Rank 1
JAYASON TV asked on 26 Apr 2010, 11:16 AM
hi
I have a gridview and i am binding it from db . If some feild in db is long , say name (lenght 120 charters ) , the grid grows horizontally . When we bind data , its size should not increase , but data in name coloum should be wraped . Can any one help me out . 
thanks
JAYASON

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 26 Apr 2010, 12:29 PM
Hi Jayason,

Please refer to:

http://www.telerik.com/community/code-library/aspnet-ajax/grid/how-to-display-long-urls-and-strings-nicely-in-radgrid.aspx

In your case you don't have hyperlinks, so in ItemDataBound you will modify the cell text directly:

(e.Item as GridDataItem)["Column_UniqueName"].Text = "...";


Kind regards,
Dimo
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
JAYASON TV
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or