Menu

#40 MaxSpan is not calculated

open
nobody
General (17)
4
2008-05-01
2008-04-29
No

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).

Discussion

  • Davide Icardi

    Davide Icardi - 2008-05-01
    • priority: 5 --> 4
     
  • Davide Icardi

    Davide Icardi - 2008-05-01

    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 :-)

     

Log in to post a comment.