or
GridViewHyperlinkColumn
and the link is not showing up. Can you please help me with this issue?
fontChooser = new FontChooser(); fontChooser.selectedFont = row.ItemArray[3]; //From dataTable fontChooser.selectedStyle = row.ItemArray[5].ToString().Trim(); fontChooser.selectedSize = row.ItemArray[4]; fontChooser.selectedWeight = FontWeight.FromOpenTypeWeight( Int32.Parse(row.ItemArray[7].ToString())); fontChooser.Name = "fc_" + row.ItemArray[0].ToString().Trim(); fontChooser.SelectionChanged += new SelectionChangedEventHandler(fontChooser_SelectionChanged); grid.RegisterName(fontChooser.Name, fontChooser); grid.Children.Add(fontChooser); Grid.SetRow(fontChooser, i); Grid.SetColumn(fontChooser, 3); Grid.SetColumnSpan(fontChooser, 4); //Event Handler void fontChooser_SelectionChanged(object sender, SelectionChangedEventArgs e) { FontChooser fc = (e.OriginalSource as FontChooser); selectedFont = fc.selectedFont; selectedFontStyle = fc.selectedStyle; FontWeight weight = (FontWeight)fc.selectedWeight; selectedFontWeight = weight; Console.Out.WriteLine(fc.Name); //Added to see what is going wrong string name = fc.Name.Substring(3); activeControl = name; string filterExpr = "LABEL_NAME = '" + name + "'"; DataRow[] rowToUpdate = tempTable.Select(filterExpr); int ptr = tempTable.Rows.IndexOf(rowToUpdate[0]); DataRow dr = rowToUpdate[0]; dr[3] = selectedFont; if (fc.selectedSize != null) { selectedFontSize = fc.selectedSize; dr[4] = selectedFontSize; } dr[5] = selectedFontStyle; dr[7] = weight.ToOpenTypeWeight(); dr.AcceptChanges(); tempTable.Rows[ptr].BeginEdit(); tempTable.Rows[ptr].ItemArray = dr.ItemArray; tempTable.Rows[ptr].AcceptChanges(); tempTable.Rows[ptr].EndEdit(); }AutoGenerateHierarchy property.