Hi, I have a RadGrid created completely in code behind. After switching to the new skins the following is happening.
Some columns including the header show up in a different color then specified here
RG1.AlternatingItemStyle.BackColor = System.Drawing.Color.Snow;
RG1.ItemStyle.BackColor = System.Drawing.Color.White;
For example only the ID column header background is dark gray then all the rows in the data are light and dark gray just for that column. The rest of the rows are the proper colors defined above. It happens on all the id fields.
I thought id might be because that column is set readonly = true but if I set it to false its dark grey
The rest of the column headers are the correct color , White and the AlternatingItemStyle Snow. But if I change skins it does it on all of them
What would be changing the color of the id field?
Some columns including the header show up in a different color then specified here
RG1.AlternatingItemStyle.BackColor = System.Drawing.Color.Snow;
RG1.ItemStyle.BackColor = System.Drawing.Color.White;
For example only the ID column header background is dark gray then all the rows in the data are light and dark gray just for that column. The rest of the rows are the proper colors defined above. It happens on all the id fields.
I thought id might be because that column is set readonly = true but if I set it to false its dark grey
The rest of the column headers are the correct color , White and the AlternatingItemStyle Snow. But if I change skins it does it on all of them
What would be changing the color of the id field?
boundColumn = new GridBoundColumn(); |
boundColumn.DataField = "id"; |
boundColumn.HeaderText = "ID"; |
boundColumn.UniqueName = "id"; |
boundColumn.HeaderStyle.Width = Unit.Pixel(15); |
boundColumn.ItemStyle.Width = Unit.Pixel(15); |
boundColumn.FooterStyle.Width = Unit.Pixel(15); |
boundColumn.Display = true; |
boundColumn.Visible = true; |
boundColumn.ReadOnly = true; |
boundColumn.ItemStyle.HorizontalAlign = HorizontalAlign.Center; |
boundColumn.HeaderStyle.HorizontalAlign = HorizontalAlign.Center; |
boundColumn.FooterStyle.HorizontalAlign = HorizontalAlign.Center; |
RG1.MasterTableView.Columns.Add(boundColumn); |