Zero in a subtotal row.

Originally Posted 1 November 2016, 11:24 am EST

  • Originally Posted 1 November 2016, 11:24 am EST

    After creating a subtotal columns with out values show a Zero.
    I would like to remove the zeros.

    For Row = 1 To gdList.Rows.Count - 1
    If gdList.Rows(Row).IsNode = True Then
    For ThisCol = 5 To 7
    If gdList(Row, ThisCol) = 0 Then gdList(Row, ThisCol) = " "
    End If

    When the code finds a zero - gdList(Row, ThisCol) = " " does not work.
    gdList(Row, ThisCol) still = 0

  • Reply


    Can you send me a sample data which could be bound to grid with your code?

  • Marked as Answer


    I have solved the problem - the columns had data type as Int16, changed to object and now OK

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels