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

Border around expanded child table

2 Answers 58 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Marco
Top achievements
Rank 1
Marco asked on 21 Sep 2018, 08:55 AM

Hi

I have one more question... How can I disable the border around the child table? (see screenshot)

Thank You

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 21 Sep 2018, 10:12 AM
Hello Marco,

You can use the ViewCellFormatting event to remove the border of the GridDetailViewCellElement:
private void RadGridView1_ViewCellFormatting(object sender, CellFormattingEventArgs e)
{
    if (e.CellElement is GridDetailViewCellElement)
    {
        e.CellElement.DrawBorder = false;
    }
    else
    {
        e.CellElement.ResetValue(LightVisualElement.DrawBorderProperty, Telerik.WinControls.ValueResetFlags.Local);
    }
   
}

I hope this will be useful. Let me know if you have additional questions.

Regards,
Dimitar
Progress Telerik
Get quickly and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Marco
Top achievements
Rank 1
answered on 01 Oct 2018, 08:28 AM

That did the trick!

Thank you

Tags
GridView
Asked by
Marco
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Marco
Top achievements
Rank 1
Share this question
or