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.
Unfortunately, activation email could not send to your email. Please try again.

How to remove text underlining in GridHyperlinkColumn cells

Thread ID:

Created:

Updated:

Platform:

Replies:

132236 Aug 22,2017 05:47 AM Aug 25,2017 12:52 AM WPF 3
loading
Tags: SfDataGrid
Silvio
Asked On August 22, 2017 05:47 AM

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

Gnanasownthari Thirugnanam [Syncfusion]
Replied On August 23, 2017 09:30 AM

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. 


Silvio
Replied On August 24, 2017 04:01 AM

Thank you, it works fine!


Balamurugan Rajaraman [Syncfusion]
Replied On August 25, 2017 12:52 AM

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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;