Hi,
I've some problems with the GridView, If I add a GridViewCheckBoxColumn:
I set some colors in CellFormatting. Works fine, until I add the GridViewCheckBoxColumn. And now... well, see screenshots. The wrong colors changing after I clear and reinsert the GridView.
We are using RadControls 2010.2.10.0914.
And ideas? Thanks!
Andy
I've some problems with the GridView, If I add a GridViewCheckBoxColumn:
grdTestTools.Columns.Add("Id", "ToolId")grdTestTools.Columns.Add("PositionNumber", "Pos.-Nr.")grdTestTools.Columns.Add(New GridViewCheckBoxColumn("Versuch", "Test"))grdTestTools.Columns.Add("ToolNumber", "Werkzeugnummer")grdTestTools.Columns.Add("Manufacturer", "Hersteller")grdTestTools.Columns.Add("Coating", "Beschichtung")grdTestTools.Columns.Add("NumberOfAdaptors", "Schneiden")grdTestTools.Columns.Add("ActualCumulativeAverageNumberOfPieces", "Standmenge Ist")grdTestTools.Columns.Add("DebitCumulativeAverageNumberOfPieces", "Standmenge Soll")grdTestTools.Columns.Add("ActualCumulativeToolingCosts", "Werkzeugekosten Ist")grdTestTools.Columns.Add("DebitCumulativeToolingCosts", "Werkzeugekosten Soll")grdTestTools.Columns.Add("CumulativeNumberOfTools", "Benutzte Werkzeuge")grdTestTools.Columns.Add("CumulativeBrokenDieCounter", "davon gebrochen")I set some colors in CellFormatting. Works fine, until I add the GridViewCheckBoxColumn. And now... well, see screenshots. The wrong colors changing after I clear and reinsert the GridView.
Private Sub grdTestTools_CellFormatting(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.CellFormattingEventArgs) Handles grdTestTools.CellFormatting MyColumn = e.CellElement.ColumnInfo If MyColumn.Name = "ActualCumulativeAverageNumberOfPieces" Or MyColumn.Name = "ActualCumulativeToolingCosts" Then 'Ist-Färbung e.CellElement.ForeColor = CoreFunctions.MyDefaultToolActualValuesFontColor e.CellElement.DrawFill = True e.CellElement.NumberOfColors = 1 e.CellElement.BackColor = Color.FromArgb(123, 123, 123) ElseIf MyColumn.Name = "DebitCumulativeAverageNumberOfPieces" Or MyColumn.Name = "DebitCumulativeToolingCosts" Then 'Soll-Färbung e.CellElement.ForeColor = CoreFunctions.MyDefaultToolDebitValuesFontColor e.CellElement.DrawFill = True e.CellElement.NumberOfColors = 1 e.CellElement.BackColor = Color.FromArgb(123, 123, 123) End IfEnd SubWe are using RadControls 2010.2.10.0914.
And ideas? Thanks!
Andy
