What is the proper way to delete a grid data section (not header) including buttons?
When reloading several large grids I sometimes get an EOSError Code 5.
Probably a timing problem while clearing the grid?
What is the proper way to delete a grid data section (not header) including buttons?
When reloading several large grids I sometimes get an EOSError Code 5.
Probably a timing problem while clearing the grid?
Hi,
There is a Clear method, and there is also ClearCells where you can specify a range. If you have set properties at column level however, they will not be cleared, unless you remove the column in the columns collection. If you want to keep the header you can use:
TMSFNCDataGrid1.ClearCells(MakeCellRange(TMSFNCDataGrid1.FixedColumnCount, TMSFNCDataGrid1.FixedRowCount, TMSFNCDataGrid1.ColumnCount - 1 - TMSFNCDataGrid1.FixedRightColumnCount, TMSFNCDataGrid1.RowCount - 1 - TMSFNCDataGrid1.FixedBottomRowCount));