Posted 3 November 2022, 4:42 am EST
Why losts the column format when I run this piece of code?
Dim cs As C1.Win.C1FlexGrid.CellStyle = FlexGrid.Styles.Add(“Test”)
cs.Font = New Font(Font_Name, Font_Size)
cs.TextAlign = C1FlexGrid.TextAlignEnum.LeftCenter
cs.Format = Columna.Format ’ Ocurs with or without this line
Columna.Style = cs
I need to keep the “N2” format to show values with two decimals. The column has that format and shows ok if I don’t asign the style with that code.
Thanks.