MaxSpan is not calculated
Brought to you by:
davideicardi
The documentation of SourceGrid.Grid.MaxSpan tells me not to change the value since it is calculated automatically.
First, this value is shared between instances which isnt a nice thing and second, its only initialized to 10 and never changed from there.
So, do we really need MaxSpan? Yes, I have seen it is being used in some loops and tests. But the implementation just doesnt look right (shared variable across instances).
Logged In: YES
user_id=1515232
Originator: NO
You are right, this wasn't a very good idea and code ....
Consider that anyway that I use that variable just like a constant ( that can be changed :-) )
Basically the idea was to use a maximum value to check if a cell is merged with other cells.
But you are right, I must find a better solution ... any help is appreciate :-)