Hello,
I'm having a lot of trouble getting my gridview to format appropriately, even though I've extensively looked through the knowledge-base and forums. I think the main cause of distress is the fact that changes make to my Theme in the Visual Style Builder are not reflected in the Preview or the Design view. This makes it hard to know what the grid will look like without running the project, which is time consuming. Is there any solution for this?
The main specific problem I am having is changing the formatting of the GridHeaderCellElements in my gridview. Using the Visual Style Builder doesn't seem to work at all (ala the tutorial) and when I do it programmatically, as in
This prevents the nice blue highlighting when the cursor is moved over the cells. Any way I can keep the highlighting intact?
Please help,
Jeremy
I'm having a lot of trouble getting my gridview to format appropriately, even though I've extensively looked through the knowledge-base and forums. I think the main cause of distress is the fact that changes make to my Theme in the Visual Style Builder are not reflected in the Preview or the Design view. This makes it hard to know what the grid will look like without running the project, which is time consuming. Is there any solution for this?
The main specific problem I am having is changing the formatting of the GridHeaderCellElements in my gridview. Using the Visual Style Builder doesn't seem to work at all (ala the tutorial) and when I do it programmatically, as in
private void grdJobs_ViewCellFormatting(object sender, CellFormattingEventArgs e) |
{ |
if (e.CellElement is GridHeaderCellElement) |
{ |
e.CellElement.BackColor = Color.FromArgb(255, 255, 255); |
e.CellElement.BackColor2 = Color.FromArgb(245, 245, 245); |
e.CellElement.BackColor3 = Color.FromArgb(235, 235, 235); |
e.CellElement.BackColor4 = Color.FromArgb(225, 225, 225); |
} |
} |
This prevents the nice blue highlighting when the cursor is moved over the cells. Any way I can keep the highlighting intact?
Please help,
Jeremy