I have a series of three columns I need to display images in a webdatagrid. the image I wish to display will be based on some business logic concluded from other values in the grid. I am trying to figure out how I go about manipulating the properties of each item in each ig:TemplateDataField on server side code. I've spent a long time googling this without much to show for it. I'm hoping that someone has an example.
Hi Alan,
This is to let you know that I have received your inquiry and will be looking into this for you. Thanks!
Hey Troy,
It looks like I might have stubled upon a solution to my own problem. Look at the following snippet...Let me know if there is a more efficient way to do this...
Private Sub wdgApplicants_InitializeRow(sender As Object, e As Infragistics.Web.UI.GridControls.RowEventArgs) Handles wdgApplicants.InitializeRow Dim imgInfo As HyperLink Dim g As Infragistics.Web.UI.GridControls.GridField Dim strAddressLine As String Dim strCandidateName As String Dim intApplTrackId As Integer imgInfo = CType(e.Row.Items.FindItemByKey("tImageInfo").FindControl("imgInfo"), HyperLink) strAddressLine = CType(e.Row.Items.FindItemByKey("Address_Line1").Value, String) strCandidateName = CType(e.Row.Items.FindItemByKey("Candidate_Name").Value, String) intApplTrackId = CType(e.Row.Items.FindItemByKey("Appl_Track_Id").Value, Integer) If strAddressLine <> String.Empty Then imgInfo.ToolTip = "Review Application for " + strCandidateName imgInfo.ImageUrl = "~/images/icon_information16.gif" imgInfo.NavigateUrl = "~/ReviewApp.aspx?I=" + intApplTrackId.ToString imgInfo.Target = "_new" End If End Sub