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.

GridHyperlinkColumn wrap text

Thread ID:





119004 May 3,2015 05:59 PM May 5,2015 02:45 AM WinRT 3
Tags: SfDataGrid
Asked On May 3, 2015 05:59 PM

How can I make "GridHyperlinkColumn" column to wrap text?

Farjana Parveen Ayubb [Syncfusion]
Replied On May 4, 2015 08:48 AM

Hi Vasanth,

Thank you for contacting Syncfusion support.

We analyzed your query. Currently, we don’t have a direct support for TextWrapping in GridHyperlinkColumn in SfDataGrid. But we have prepare the workaround based on your requirement by overriding the GridCellHyperlinkRenderer in SfDataGrid.

Please refer the following code snippet and sample in the following location:

Code Snippet:

public class GridHyperlinkColumnExt : GridCellHyperlinkRenderer


public GridHyperlinkColumnExt()



public override void OnInitializeEditElement(Syncfusion.UI.Xaml.ScrollAxis.RowColumnIndex rowColumnIndex, HyperlinkButton uiElement, GridColumn column, object dataContext)


base.OnInitializeEditElement(rowColumnIndex, uiElement, column, dataContext);

TextBlock textblock = uiElement.Content as TextBlock;

textblock.TextWrapping = Windows.UI.Xaml.TextWrapping.Wrap;



Sample Location: SfDataGridWithHyperLinkColumn.zip


Farjana Parveen A

Replied On May 4, 2015 10:16 AM

Perfect, thanks!

Saranya CJ [Syncfusion]
Replied On May 5, 2015 02:45 AM

Hi Vasanth,

Thank you for your update. Please let us know if you require further assistance on this.



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.