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

How to remove text underlining in GridHyperlinkColumn cells

Hi,

I would like not to show the underlining that is by default used to decorate texts in the cells of GridHyperlinkColumn  columns.
I'd like also that these cells continue to be managed by SfSkinManager if it is changed the current style of the app (but without text underlining).
Is it possibile to obtain this?

Silvio

3 Replies

GT Gnanasownthari Thirugnanam Syncfusion Team August 23, 2017 01:30 PM UTC

Hi Silvio, 
 
We have checked your query “not to show the underlining in GridHyperlinkColumn column”, you can able to achieve your requirement by setting TextDecorations as null for HyperLink (writing style to HyperLink ) and added this style to SfDataGrid.Resources so theme style and HyperLink style is applied to GridCell as like below code example. 
 
XAML 
<Syncfusion:SfDataGrid.Resources> 
      <Style TargetType="Hyperlink"> 
            <Setter Property="TextDecorations" Value="{x:Null}"/> 
      </Style> 
</Syncfusion:SfDataGrid.Resources> 
 
We have ensured the changes by various themes it works fine in all themes (without text underlining). 
 
We have prepared the sample based on your requirement (including themes), you can download the same from below mentioned location. 
 
Sample location:  
 
Regards, 
Gnanasownthari T. 



SI Silvio August 24, 2017 08:01 AM UTC

Thank you, it works fine!



BR Balamurugan Rajaraman Syncfusion Team August 25, 2017 04:52 AM UTC

Hi Silvio 
 
Thanks for the update, 
 
Please let us know if you need any further assist on this. 
 
Regards, 
Balamurugan R 


Loader.
Live Chat Icon For mobile
Up arrow icon