Skip to content

Replies

0
Jose Acevedo
Jose Acevedo answered on Nov 3, 2014 3:38 PM

Hi Jeevitha,

Thank you for the update.

The sample I’ve provided demonstrates how to dynamically handle the hyperlink for each row using the InitializeRow event.  The pre-requisite for my sample requires you to already have the hyperlink-template-column setup inline using markup. If you wish to configure the grid to use hyperlinks for each row in a column using only the code-behind, please review the sample I’ve attach to this post.

Please note, I recommend reviewing our API documentation to learn more about the WebDataGrid.

0
Jose Acevedo
Jose Acevedo answered on Oct 30, 2014 8:11 PM

Hi Jeevitha,

Thank you for the update.

As you’ve requested, I’ve attached a sample which demonstrates how to dynamically handle the hyperlink for each row using the InitializeRow event. Note, I was able to get a reference to the Hyperlink control in the template using the FindControl method. This will allow you to dynamically set the hyperlink properties for each row in the code behind.

Please review the sample and let me know if you have any questions.

0
Jose Acevedo
Jose Acevedo answered on Oct 28, 2014 10:23 PM

Hello Jeevitha Manickam,

Thank you for posting on our forums.

The WebDataGrid doesn’t have a Type property used to set the value as a Hyperlink. Instead, I recommend using a Template Field as the column, and adding an ASP.NET HyperLink control to display a HyperLink style for the values of each column.

I recommend setting up the layout of the Template using inline markup as demonstrated in the linked thread

To learn more about Columns for the WebDataGrid, please refer to the Columns help topic in our documentation.

Please let me know if you have any questions regarding this matter.