How to distinquish TimeSpan.Zero from null in ReportViewer Code? RRS feed

  • Question

  • Hello,
    silly question, but in my DataSet I have TimeSpan column with TimeSpan.Zero and null values, how can I distinquish them? As far as I know in VB Nothing and TimeSpan.Zero is equal (my VB knowledge is near to zero). But with ReportViewer default formatting, null is rendered as empty string and TimeSpan.Zero as "00:00:00".
    I need to write custom formatting code, what will format TimeSpan values as "hh:mm", but null values should be formatted as empty string. How to do this in VB?

    Monday, June 9, 2008 8:50 AM