Posted 20 July 2020, 11:53 am EST - Updated 30 September 2022, 1:30 pm EST
I cannot get the sheetview.DefaultStyle to work. I have tried a plain vanilla project and pasted the code from your documentation example (https://help.grapecity.com/spread/SpreadNet12/WF/webframe.html#spwin-cellstyle.html) and it does not work. I had a friend of mine who also has Farpoint licensed at his work to do the same thing and fail as well.
There is nothing that can be changed using the sheetview.DefaultStyle property. The colors and fonts stay the same no matter what. I have tried setting the properties directly and with a StyleInfo object… same results.
The following code was used to generate the sheet attached below:
Private Sub SetDefault()
Dim style As New FarPoint.Win.Spread.StyleInfo With {
.BackColor = Color.Teal,
.ForeColor = Color.Yellow
}
FpSpread1_Sheet1.DefaultStyle = style
For x As Integer = 0 To 4
For y As Integer = 0 To 4
FpSpread1_Sheet1.Cells(x, y).Value = x + y
Next
Next
End Sub
Any ideas?