Selection Color Change

Posted by: sanjay-kamal on 8 September 2017, 3:15 pm EST

  • Posted 8 September 2017, 3:15 pm EST

    Hi Pragati,

    help me, how to change default selection background color in spread?

    Thanks,
  • Marked as Answer

    Replied 8 September 2017, 3:15 pm EST

    Hello Kamal,

    In order to accomplish your requirements, I would suggest you to use 'SelectionStyle' and 'SelectionBackColor' property of SheetView class. To do the same, use the following lines of code:

    FpSpread1.ActiveSheet.SelectionStyle = FarPoint.Win.Spread.SelectionStyles.Both;
    FpSpread1.ActiveSheet.SelectionBackColor = Color.CadetBlue;


    Note:
    1.'SelectionStyle' property gets or sets how selections on this sheet are drawn.
    2. 'SelectionBackColor' property gets or sets the background color of an object when the object is selected.

    For more information, go through the links given below:
    http://helpcentral.componentone.com/NetHelp/SpreadNet7/WF/webframe.html#FarPoint.Win.Spread~FarPoint.Win.Spread.SheetView~SelectionStyle.html
    http://helpcentral.componentone.com/NetHelp/SpreadNet7/WF/webframe.html#FarPoint.Win.Spread~FarPoint.Win.Spread.Appearance~SelectionBackColor.html

    Hope it helps.

    Thanks & Regards,
    Pragati Kaushik
Need extra support?

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

Learn More

Forum Channels