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

    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.

    Any help or pointers will be highly appreciated.

     

    Thanks,

    Saikat

  • 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...

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

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

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

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

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

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

    fpSpread1.Sheets[0].RowHeaderVisible = false;

Need extra support?

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

Learn More

Forum Channels