keep the default rows after assinging a strongly typed collection

Posted by: parez81-fp on 8 September 2017, 1:17 pm EST

  • Posted 8 September 2017, 1:17 pm EST

    Hi,

    I use the following line to assingn data to the grid

    ui_tableCodes_Sheet1.Models.Data = new FarPoint.Win.Spread.Model.DefaultSheetDataModel(value, typeof(TableCode));

    After I do it, the number of rows in the grid becomes equal to the number items in the collection.
    Is there any way i can keep the default 500 rows?
  • Replied 8 September 2017, 1:17 pm EST

    parez81 -

    There is not a way to keep them when you are binding but after you are done binding you could query the RowCount and then add additional rows to equal 500.
  • Replied 8 September 2017, 1:17 pm EST

    Thansks . i will use Rows.Add(index,count)
Need extra support?

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

Learn More

Forum Channels