I have read a couple articles but I am still a bit confused. How can I make the first column of each row a hyperlink. I have a field with a number and that number attached to a url pulls up the page of this item. I just want to have the button be dynamically created when I fill the datagrid.
Share
I do this in Telerik RadGridView, but I think the same can be used on the regular DataGrid.
I create a DataTemplate containing the column:
Then you add it to the grid, in Telerik I do the following way:
But I think it is easy to reproduce in DataGrid.
Another path is to create the command in the object you are using as ItemsSource, and creating a Template for it that generates the Hyperlink column.
Hope it helps.