We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Border of frozen columns

Hi,

it would be nice to have the right border of the outermost frozen column different (for example a greater width) like in Excel.
I tried to solve this in Setting the CellStyle of the GridTextColumn, but that does not work (I also set the RowStyle and AlternateRowStyle of the SfDataGrid).
Is there an easy solution?

Thanks, Kurt

3 Replies

JS Jayapradha S Syncfusion Team March 21, 2016 09:13 AM UTC

Hi Kurt,

Thank you for contacting Syncfusion Support.

Yes. It is possible to set the border for Frozen columns in SfDataGrid like in Excel. You can set the border thickness for Frozen columns, by customizing the GridCell and GridHeaderCellControl Visual styles.


Code Example:

<VisualState x:Name="FrozenColumnCell">

       <Storyboard BeginTime="0">

           <ThicknessAnimationUsingKeyFrames BeginTime="0"

                                             Duration="1"

                                             Storyboard.TargetName="PART_GridCellBorder"

                                             Storyboard.TargetProperty="BorderThickness">

                        <EasingThicknessKeyFrame KeyTime="0"

                                                 Value="0,0,3,1"/>

                        </ThicknessAnimationUsingKeyFrames>

      </Storyboard>

</VisualState>


Please find the sample from the following location,
Sample Link: http://www.syncfusion.com/downloads/support/forum/123466/ze/FrozenColumnBorder1698647548

Regards,
Jayapradha



KZ Kurt Zimmermann March 21, 2016 02:45 PM UTC

Thank you very much!

Work's like a charm.

Regards, Kurt


AP Ashwini Paranthaman Syncfusion Team March 22, 2016 06:42 AM UTC

Hi Kurt,
We are glad that your issue has been fixed.
Please let us know if you need any other assistance.
Regards,
Ashwini P.

Loader.
Live Chat Icon For mobile
Up arrow icon