Posted 3 August 2020, 9:55 pm EST
Hello,
FlexGrid have the ColumnCollection “Cols” property so to change the column’s width and column’s text alignment, first we need to access the column by its index or name(example:- Grid1.Cols[1] or Grid1.Cols[“Name”]) then we can the width or text alignment in the following way:-
Grid1.Cols[1].Width = 100;
Grid1.Cols[1].TextAlign = TextAlignEnum.LeftCenter;
FlexGrid has some predefined CellStyles, one of them is “Fixed” which is the style for fixed cells. To change their text alignment we use the Styles property of the FlexGrid as given below:
Grid1.Styles[“Fixed”].TextAlign = TextAlignEnum.RightCenter;
I hope it helps.
If you need any other help, please let us know.
Regards,
Prabhat Sharma.