Hi,I am doing a query task and getting results back. In the feature set I get back, in the attributes, one of the attributes is an ID which I want to use in a URL. In the results grid, I would like to see just a button or a hyperlinked word which would open a new window to the URL I would build.Currently, when the query task completes, the results grid is populated using:
QueryDetailsDataGrid.ItemsSource = args.FeatureSet.Features;
Obviously, this will have to change if I want to insert some type of link. I have tried the following code:
List<Graphic> lstGraphics = new List<Graphic>();
foreach (Graphic g in args.FeatureSet.Features)
{
if (g.Attributes.ContainsKey("GEOSCANREC"))
{
g.Attributes["GEOSCANREC"] = "<a href=\"http://geopub.nrcan.gc.ca/html/view_e.php?id=" + g.Attributes["GEOSCANREC"] + "\">GO</a>";
}
lstGraphics.Add(g);
}
QueryDetailsDataGrid.ItemsSource = lstGraphics;
which inserts the URL in the grid, but it is not an active link. Is there a way to change that so the user can click to open the link in a new window?Thanks,Paul