Posted 8 September 2017, 2:40 pm EST
i am struggling trying to delete the Selected Rows from a FPSpread.
I first get the selected Rowindices like this:
private IEnumerable<int> GetSelectedRowIndices()
CellRange r = grid_Sheet1.GetSelections();
List<int> rows = new List<int>();
foreach (CellRange cellRange in r)
if (cellRange.RowCount <= 0)
int upperBound = cellRange.Row + cellRange.RowCount;
for (int i = cellRange.Row; i < upperBound; i++)
rows = rows.Distinct().ToList();
then i try to
foreach (int row in rows)
And both methods just don't work. Literally nothing happens? No rows are ever removed, no Exception no nothing... I just don't get it...?
Could it have something to do with my DataModel? I created a custom ISheetDataModel impl.