I need to change the BackColor of the Tabs inside the PageViewElement of a Child row in a Gridview. I can access the PageViewElement itself, but how do I get to the Tabs' BackColor Property?
private void myDataTable_ViewCellFormatting(object sender, CellFormattingEventArgs e)
{
GridDetailViewCellElement detailCell = e.CellElement as GridDetailViewCellElement;
if (detailCell != null)
{
detailCell.Margin = new Padding(60, 0, 0, 0);
detailCell.Font = new Font(new FontFamily("Calibri"), 20.0f, FontStyle.Bold | FontStyle.Underline);
detailCell.ForeColor = Color.FromArgb(255, 102, 0);
detailCell.PageViewElement.DrawFill = true;
detailCell.PageViewElement.BackColor = Color.Red; //this sets the backcolor of the PageViewElement
}
}