All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
How can I hide the lines between the rows? (I use Office2019 theme)
I already tried this:
private void RadGridView_CellFormatting(object sender, CellFormattingEventArgs e) { e.CellElement.DrawBorder = false; }
Gridlines are gone but the horizontal lines are still there.
Hi, Michael,
In the Office2019Light theme, you should set RowElement.DrawBorder property to false as well in the CellFormatting event:
private void RadGridView1_CellFormatting(object sender, CellFormattingEventArgs e) { if (e.CellElement != null) { e.CellElement.DrawBorder = false; e.CellElement.RowElement.DrawBorder = false; } else { e.CellElement.ResetValue(LightVisualElement.DrawBorderProperty, ValueResetFlags.Local); e.CellElement.RowElement.ResetValue(LightVisualElement.DrawBorderProperty, ValueResetFlags.Local); } }
I hope this helps. Should you have any other questions do not hesitate to ask.
Regards, Nadya Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.
Thank you very much, with this I get the desired result!
For me the question is perfectly answered.