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

Accesing or changing childview border width

1 Answer 82 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Bilgehan
Top achievements
Rank 1
Bilgehan asked on 09 Sep 2012, 02:25 PM
Using Hierarchical grid how can we get or set the width of border around child view template?

Attached is a sample

Thanks in advance


1 Answer, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 10 Sep 2012, 10:25 AM
Hi,

The element that holds the child levels is called GridDetailViewCellElement, so you should modify its Padding to change the desired width:
void radGridView1_ViewCellFormatting(object sender, CellFormattingEventArgs e)
{
    if (e.CellElement is GridDetailViewCellElement)
    {
        e.CellElement.Padding = new Padding(1);
    }
}

I hope this helps.
 
Greetings,
Stefan
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Tags
GridView
Asked by
Bilgehan
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or