Can anyone help me with an example, how to put pictures in the UltraWebGrid column and use it as a hyperlink.
Thanks
Add the pics in website then
On the InitializRow event of the Grid, write this code:
e.Row.Cells.FromKey("Key").Value = "<img src='~/Path/pic.JPG'/>";e.Row.Cells.FromKey("Key").TargetURL = "~/Path";
Hello
I tried to use the InitializeRow event handler in order to display a picture when a cell value of another column was true. My problem is that only the first row is displayed. What could be happening? If the following code is commented out many rows are displayed:
With e.Row.Cells If CBool(.FromKey("HasPDF").Value) = True Then .FromKey("PDF").Value = "<img src='PDF.gif'/>" End IfEnd With
Thanks a lot.
Since the grid was hierarchical, first it is required to discriminate the band of the row:
If e.Row.Band.Key = "Band1" Then With e.Row.Cells If CBool(.FromKey("HasPDF").Value) = True Then .FromKey("PDF").Value = "<img src='PDF.gif'/>" End If End WithEnd If