I'm using a DataGrid to display data returned from a database.
I've got a template column which displays the results from several fields.
Within this template column I want to display certain fields but only if the
data in a particular field is not null, but I can't get it to work:
<itemtemplate >
....
<%# If Not IsDBNull(DataBi nder.Eval(Conta iner.DataItem, "EditedBy") Then
DataBinder.Eval (Container.Data Item, "EditedBy") & " " &
DataBinder.Eval (Container.Data Item, "DateEdited ")
End If %>
</itemtemplate>
How should I do this?
Many thanks for any help.
Alan