Hi,
I'm working with a RadGridView to show dynamically some event come on my app. The RadGridView use a GridViewTemplate to show some children events and the relation is made with a GridViewRelation.
I do some tests to try to customize the display on the event ViewCellFormatting but I still have problem on the RadPageViewStripElement where like on the sample because I cannot remove the Yellow line (define on the RadPageViewContentAreaElement).
I would like know if it's possible to remove this yellow line?
private
void
GridView_ViewCellFormatting(
object
sender, CellFormattingEventArgs e)
{
GridDetailViewCellElement childCell = e.CellElement
as
GridDetailViewCellElement;
GridGroupExpanderCellElement expanderCell = e.CellElement
as
GridGroupExpanderCellElement;
if
(childCell !=
null
)
{
childCell.Padding = Padding.Empty;
RadPageViewStripElement stripElement = childCell.PageViewElement
as
RadPageViewStripElement;
if
(stripElement !=
null
)
{
stripElement.DrawBorder =
false
;
stripElement.Padding = Padding.Empty;
RadPageViewContentAreaElement contentArea = stripElement.ContentArea
as
RadPageViewContentAreaElement;
contentArea.DrawBorder =
false
;
contentArea.BackColor = Color.Yellow;
contentArea.Padding = Padding.Empty;
foreach
(RadPageViewItem item
in
stripElement.Items)
{
item.Size =
new
Size(0, 1);
item.Visibility = ElementVisibility.Hidden;
item.DrawBorder =
false
;
}
}
}
else
if
((expanderCell !=
null
) && (expanderCell.RowElement
is
GridDataRowElement))
{
expanderCell.Expander.Visibility = ElementVisibility.Hidden;
}
}