Stylizing Selected Cell - How to ?

Posted by: oric-cq on 8 September 2017, 11:31 pm EST

  • Posted 8 September 2017, 11:31 pm EST

    Hi there !

    Is there a way to style the selected cell like Excel 2013 does ?

    Best regards,

    Ciro.

  • Replied 8 September 2017, 11:31 pm EST

    Hello Ciro,

    It works in the following way :

    Public Class FlexibleTable1SetGrid1
    Private _flex As C1.Silverlight.FlexGrid.C1FlexGrid

    Private Sub FlexibleTable1SetGrid1_Created()
    Dim proxy As IContentItemProxy = Me.FindControl("C1FlexGrid")
    AddHandler proxy.ControlAvailable, AddressOf proxy_ControlAvailable
    End Sub

    Private Sub proxy_ControlAvailable(sender As Object, e As ControlAvailableEventArgs)
    _flex = TryCast(e.Control, C1.Silverlight.FlexGrid.C1FlexGrid)

    'customize the marquee
    _flex.Marquee.StrokeThickness = 3
    _flex.Marquee.Stroke = New SolidColorBrush(Colors.Green)
    _flex.Marquee.RadiusX = 3
    _flex.Marquee.RadiusY = 3

    'show the marquee
    _flex.ShowMarquee = True

    'no need to highlight the selection/cursor
    _flex.SelectionBackground = Nothing
    _flex.CursorBackground = Nothing
    End Sub
    End Class


    Please refer to the following documentation link wherein the same has been mentioned :
    http://helpcentral.componentone.com/nethelp/c1flexgridlightswitch/#!XMLDocuments/C1FlexGridLS/html/P_C1_Silverlight_FlexGrid_C1FlexGrid_ShowMarquee.htm

    Hope it helps.

    Regards,
    Reema
  • Marked as Answer

    Replied 8 September 2017, 11:31 pm EST

    Hello, Reema!

    The C1FlexGrid is great, but the support service is even better !

    Solved. Thank you !

    Best regards,

    Ciro
Need extra support?

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

Learn More

Forum Channels