Rows be 2 digits

Posted by: patrik on 30 July 2023, 5:03 pm EST

    • Post Options:
    • Link

    Posted 30 July 2023, 5:03 pm EST

    rows counter on the spread are like.

    1

    2

    3

    9

    10

    is it possible to have like this:

    01

    02

    03

    10

  • Posted 31 July 2023, 7:53 pm EST

    Hi Patrik,

    You can change the labels of row headers having single digit as shown in the following lines of code:

    for(int i=1; i<=9; i++)
    {
        fpSpread1.Sheets[0].RowHeader.Rows[i-1].Label = "0" + i.ToString();
    }

    Kindly refer to the attached sample for full implementation. See RowHeaderLabel.zip

    Thanks & Regards,

    Aastha

Need extra support?

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

Learn More

Forum Channels