Hi,
Kindly use Cell.Style.BackColor and Cell.Style.ForeColor properties for your need.
E.g..,
WebWorksheets sheets = GridWeb1.WebWorksheets;
WebWorksheet sheet = sheets["Sheet1"];
WebCells cells = sheet.Cells;
cells["A1"].PutValue("a");
cells["B4"].PutValue("b");
cells["C5"].PutValue("c");
cells["D6"].PutValue("d");
cells["E7"].PutValue("e");
cells["B4"].Style.BackColor = Color.Transparent;
cells["B4"].Style.ForeColor = Color.White;
Thank you.
Amjad Sahi
Support Developer,
Aspose Nanjing Team
Contact Us