Hey,
What I do now (but it is wrong)
....
<asp:templatecolumn HeaderText="Factuur">
<itemtemplate>
<span>
<%# if ((Transactie)Container.DataItem).FactuurId == 0 {""} else
{(Transactie)Container.DataItem).FactuurId} %>
</span>
</itemtemplate>
</asp:templatecolumn>
<asp:BoundColumn DataField="MatchDt" HeaderText="MatchDatum"
DataFormatString="{0:d}"></asp:BoundColumn>
....
I bind a collection to my datagrid, but how to do the following :
When my field FactuurId = 0 I want to display nothing in the column
The same for my date, when the date = DateTime.MinValue (01/01/0001) I want
to display nothing in the column (empty cell).
How can I do this ?
Thanks in advance.
Jac