Posted 8 September 2017, 8:43 am EST
Scott,
Per our discussion yesterday I am trying the work around for this issue by issuing the following statement at the time I create the new column.
(This is an attempt to lock the column header (row -1) so that we don’t drop into editmode when the user double clicks on the header. cells in the remaining column (rows 0 and up) should remain unlocked so the users can make changes, but the user never needs to do anything the header except double click, at which point a new window pops up to guide the user into renaming the header.)
FpSpread1.Cells(-1, fpcol).Locked() = True
When I do this, I get an error that states:
Invalid row index: -1 (must be between 0 and 4)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IndexOutOfRangeException: Invalid row index: -1 (must be between 0 and 4)
What this tells me, is that I can not lock the header row. Since there is the header row (-1) and five ‘data’ rows (0 thru 4) in this instance. Is this correct? And if so, then am I to assume that this workaround will not work?
taz