Msflexgrid to C1Flexgrid

Posted by: safwatdahroug on 30 July 2020, 6:19 pm EST

    • Post Options:
    • Link

    Posted 30 July 2020, 6:19 pm EST

    I have replaced MsFlexGrid To C1Flexgrid version 2.6

    but i have bugs with some attributes like :

    Grid1.set_ColWidth(I, kindS(I))

    Grid1.set_FixedAlignment(I, 4)

    Grid1.set_ColAlignment(I, IIf(FormLang, 4, 4))

    if any one have solve

    thanks

  • 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.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels