FlexGrid: BackColor for cell

Posted by: andreyspirit88 on 11 March 2018, 8:22 pm EST

    • Post Options:
    • Link

    Posted 11 March 2018, 8:22 pm EST

    BackColorExample.zip

    Hello,

    I want to set BackColor for cell range and after that I wish to set different BackColor for specific cell, however, all the cells are colored, not just one.

    I will be happy to get a decision from you.

    Thanks a lot

  • Posted 12 March 2018, 6:03 am EST

    Hi,

    You may instead use SetCellStyle() method for painting over a specific cell in the cell range, something as follows:```

    //paint over the specific cell in Blue

    //c1FlexGridClassic1.set_Cell(CellPropertySettings.flexcpBackColor, 2, 4, Color.Blue);

    C1.Win.C1FlexGrid.CellStyle cs = c1FlexGridClassic1.Styles.Add(“CellStyle”);

    cs.BackColor = Color.Blue;

    c1FlexGridClassic1.SetCellStyle(2, 4, cs);

    
    Regards,
    Ruchir Agarwal
  • Posted 13 March 2018, 3:06 am EST

    hey andrey

    they have bug , that when changing the style (like backcolor,…) for any cell it’s Changes all that has the same Style.

    i have same isuue : https://www.grapecity.com/en/forums/winforms-edition/flexcpfontbold-doesnt-work

    https://www.grapecity.com/en/forums/winforms-edition/c1flexgridclassic-cellprop

    thanks

    saleem j.

  • Posted 14 March 2018, 6:23 pm EST

    Hello Andrey & Saleem,

    C1FlexGridClassic was introduced with the aim of helping customers migrating from ActiveX to WinForms edition, by providing them a virtually identical object model similar to VSFlexGrid[ActiveX]. Though, this control is still available for use, it is not recommended for building application from scratch, for which we have C1FlexGrid control, which is the control C1FlexGridClassic derives from. You can have more information referring: http://help.grapecity.com/componentone/NetHelp/c1flexgrid/webframe.html#componentoneflexgrid.html

    If you wish to have new features added/issues fixed you may try using C1FlexGrid, which is also among our flagship controls.

    To resolve the issue with C1FlexGridClassic, we request you to use the workaround suggested above.

    Regards,

    Ruchir Agarwal

Need extra support?

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

Learn More

Forum Channels