Hi,
Sometimes I'm pedantic when it comes to the appearance of the application.
I have a RadGridView called cGrid with events:
And set:
And now I see by selecting multiple cells (check attachment).
For cells ch last selected row can not see the bottom border.
Do you know a trick to solve this "problem"?
Sometimes I'm pedantic when it comes to the appearance of the application.
I have a RadGridView called cGrid with events:
private void cGrid_CellFormatting(object sender, CellFormattingEventArgs e){ // simple background e.CellElement.BackColor = Color.FromArgb(186, 220, 230); e.CellElement.BackColor2 = e.CellElement.BackColor; e.CellElement.BackColor3 = e.CellElement.BackColor; e.CellElement.BackColor4 = e.CellElement.BackColor; e.CellElement.DrawFill = true;}private void cGrid_ViewCellFormatting(object sender, CellFormattingEventArgs e){ // border color from background Color color = e.CellElement.BackColor; // but if IsCurrent or IsSelected the border color should be red if (e.CellElement.IsCurrent || e.CellElement.IsSelected) { color = Color.Red; } // single border for nice looking e.CellElement.BorderBoxStyle = BorderBoxStyle.SingleBorder; // solid for using only one color e.CellElement.BorderGradientStyle = GradientStyles.Solid; e.CellElement.BorderColor = color; e.CellElement.DrawBorder = true;}And set:
this.cGrid.EnableHotTracking = false;this.cGrid.HideSelection = true;this.cGrid.MultiSelect = true;this.cGrid.SelectionMode = Telerik.WinControls.UI.GridViewSelectionMode.CellSelect;And now I see by selecting multiple cells (check attachment).
For cells ch last selected row can not see the bottom border.
Do you know a trick to solve this "problem"?
