Hide the autogenerated number column in Windows Grid

Posted by: saikat2k01 on 8 September 2017, 2:49 pm EST

  • Posted 8 September 2017, 2:49 pm EST

    <font face="verdana,geneva">I am using the Farpoint Grid V1.0.9. I am trying to bind a datatable to the grid but want to hide the autogenerated row number column in the grid. Is there any property that ca be set to hide that column.</font>

    <font face="Verdana">Any help or pointers will be highly appreciated.</font>

    <font face="Verdana"></font> 

    <font face="Verdana">Thanks,</font>

    <font face="Verdana">Saikat</font>

  • Replied 8 September 2017, 2:49 pm EST

    Saikat, 

    To hide the number labels in the row header, you can use code like the following...

    <blockquote>

    fpSpread1.Sheets[0].RowHeaderAutoText = HeaderAutoText.Blank;

    </blockquote>

    To hide an individual column in the row header, you can use code like the following..

    <blockquote>

    fpSpread1.Sheets[0].RowHeader.Columns[0].Visible = false;

    </blockquote>

    To remove an individual column from the row header, you can use code like the following...

    <blockquote>

    fpSpread1.Sheets[0].RowHeader.Columns.Remove(0, 1);

    </blockquote>

    To hide the row header, you can use code like the following...

    <blockquote>

    fpSpread1.Sheets[0].RowHeaderVisible = false;

    </blockquote>
Need extra support?

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

Learn More

Forum Channels