The FormattedLinkEditor class gives you the ability to add hyperlinks to any Ultimate UI for Windows Forms control which uses embeddable editors. FormattedLinkEditor derives from the embeddable editors base class in order to give Ultimate UI for Windows Forms controls this functionality. This topic will guide you through the task of setting up the WinGrid™ control using the WinDataSource™ component to store unformatted text. You will then use the WinFormattedLinkLabel™ control to format this text and display hyperlinks.
Set up WinDataSource and WinGrid.
Drag the UltraDataSource component onto the form. The ultraDataSource1 component appears in the component tray
Drag the UltraGrid control from the toolbox onto the form.
In the Properties window, find the DataSource property and set it to ultraDataSource1.
Set up the data source.
Right-click the ultraDataSource1 component in the component tray and select "UltraDataSource Designer." The UltraDataSource Designer appears.
Under DataColumns, click the "Add a new column" button
Click Apply.
Click Data Entry from the tree on the left.
In the first cell, enter "<a href="www.infragistics.com">Infragistics</a>" into the cell and then press Enter.
In the second cell, enter "<a href="www.microsoft.com">Microsoft</a>" into the cell and then press Enter.
In the third cell, enter <a href="www.google.com">Google</a>" into the cell and then press Enter.
Click Apply, and then OK.
Set up the WinFormattedLinkLabel control and set it as the column’s EditorControl.
Drag the UltraFormattedLinkLabel control onto the form.
Right-click on the grid and select "UltraGrid Designer…"
Under "Band and Column Settings", expand Band [0].
Under "Band [0]", click Columns.
Find the EditorComponent property in the Properties window and set it to ultraFormattedLinkLabel1.
Click Apply, and then OK.
Run the application.
Click on any of the links and a Microsoft® Internet Explorer window will open with the appropriate link.