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

thickness of frame around expanded hierarchy

1 Answer 87 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Markus Giera
Top achievements
Rank 1
Markus Giera asked on 06 Apr 2010, 08:14 AM
Dear Telerik users

Is it possible to get rid of the thick frame displaying around every sub-hierarchy that is expanded?

For my purpose it would be more visually appealing if the frame would only be 1px in width.

Thank you

Markus

1 Answer, 1 is accepted

Sort by
0
Accepted
Svett
Telerik team
answered on 08 Apr 2010, 06:14 PM
Hi Markus Giera,

You need to subscribe to the ViewCellFormatting event where you can change the visual properties of the desired cells. Hence, you should look for the GridDetailViewCellElement cell, which contains the child view in hierarchy. You can use the following code snippet as a sample:

private void radGridView_ViewCellFormatting(object sender, CellFormattingEventArgs e)
{
    if (e.CellElement is GridDetailViewCellElement)
    {
        e.CellElement.Padding = new Padding(2);
    }
}

Another approach is to create a custom theme with Visual Style Builder tool. You can read more about it in this documentation article.

If you have further questions do not hesitate to write us back.

Sincerely yours,
Svett
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
Markus Giera
Top achievements
Rank 1
Answers by
Svett
Telerik team
Share this question
or