I have somewhat of a crisis here at my clients site. I implemented a change proposed by you to allow us to color inividual cells in the Aspose.Grid. We had to change existing (working) code because something had changed in either the latest Apose upgrade, or because we moved the dev platform to Vista.
PROBLEM: After the code below executes, we lose the values in the Aspose.Grid cells that were colored. The data is still in the dataset, and the Aspose.Grid binding method works, so the values are there.
Appartantly, the code below colors the cell but also renders the existing value invisible somehow.
Here is the code I am using now.
public void ColorDGCells(int _index, int _cell)
WebWorksheet sheet = dg.WebWorksheets[dg.ActiveSheetIndex];
Aspose.Grid.Web.TableItemStyle style1 = new Aspose.Grid.Web.TableItemStyle();
Aspose.Grid.Web.TableItemStyle style2 = new Aspose.Grid.Web.TableItemStyle();
style1.BackColor = Color.FromName("Yellow");
sheet.Cells[_index, 0].Style = style1;
style2.BackColor = Color.FromName("#FFC0CB");
style2.ForeColor = Color.FromName("Black");
sheet.Cells[_index, _cell].Style = style2;
What am I doing wrong here?
As I said, many people are upset because they think that all of their data is missing. Please help!