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

[Solved] Cell Margins

1 Answer 118 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
MiddleTommy
Top achievements
Rank 1
MiddleTommy asked on 11 Nov 2010, 11:11 PM
FEATURE REQUEST:
Have the margin around the cell equal. When I look at the grid when the columns are automatically sized the right margin of cells is smaller than the left margin of the cells. Could you make the default so the left and right margins are equal? I always want to widen the columns a few pixels manually.

1 Answer, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 16 Nov 2010, 04:35 PM
Hello Tommy,

You can adjust this behavior through creating a simple style that targets at GridViewCell, and set its Padding property in an appropriate manner in a way similar to the following one:

<Style TargetType="telerik:GridViewCell">
    <Setter Property="Padding" Value="10,4,10,4"/>
</Style>


Kind regards,
Vanya Pavlova
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
GridView
Asked by
MiddleTommy
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Share this question
or