We have a bunch of changes to the behavior of column resizing in our grid and to that end, I''ve created a resizing controller based off the default one.
Where I''m having a problem is with resizing covered cells, in particular, resizing them smaller.
In our grid, we might have mutliple rows of column headers. They''re hierarchical in their design. For example, in the first row, I may have a column header that spans (is covered) across 5 columns. In the second row, I might have 5 column headers that are all "children" of that parent.
When the cursor is on the first row, I only allow resizing from the right hand side of that covered cell. When I resize, the parent column header (and release the mouse), the 5 child columns are resized proportionally.
The problem I have is in resizing smaller. When I try to resize the covered cell to the left, it stops at the left hand side of the 5th child column. I understand why it behaves this way by default, but that''s not the behavior we''re looking for and I''m trying to fix it, but I can''t seem to find out where this is happening.
I thought it was these two lines from MoveMarker:
if (size.Width < (int) grid.Model.Options.MinResizeColSize)
size.Width = (int) grid.Model.Options.MinResizeColSize;
But I commented them out and it''s still stopping at the left hand side of the 5th column.
I''ve attached a bitmap of the grid to give an idea of what it looks like. (BTW, where it says "Sample Text", that''s not really part of the grid). What I''m talking about is the part that says "Review Status" and then the 5 column headers underneath that. So basically, when I try to drag the right hand side of "Review" status to the left, it''s stopping at the left hand side of the "Pattern" column.
On a somewhat related issue, we''re doing the covered ranges by handling the QueryCoveredRanges event. But from the controller if I look at grid.Model.CoveredRanges, it''s always empty. Why is this?
Pete Davis
mygrid_5785.zip