views:

232

answers:

1

Hi

Since I am building the columns from code-behind, I need to attach hyperlink into one of the columns from code behind. And also, I need to add the click event.

How can I do that and its data-binding in code behind? Please advise.

Thanks AJ

A: 

Defining Columns

Take a look at the section about adding template columns. In a nutshell you can add them with a resource or by using XamlReader.Load(string) to load a DataTemplate.

Stephan