Hi,
I am using the creation filter to implement spaning a cell over multiple column using creation filters (Similar to described in KB:07325).
I am facing the issue while horizontal scrolling. If the spaned cell get out of view area through scrolling and came into view area partially, they donot appear properly.
I am attaching a screen shot of the sample along with the sample applicaiton here. Please proivde me the solution to resolve the issue.
Thank you.
Hello,
I am afred as not getting reponse on this.
I am not sure if there is something wrong in my code which cause this behavior or if "It is a bug".
I don't think the approach you are taking here will work.Your code is fairly simple, but the task you are trying to accomplish here is far more complicated.
If the first column is scrolled out of view, then it will not have any cells and will not create any CellUIElements. So if the first column is scrolled out of view and the second column is visible, the second column will not have any contents - since the UIElement from the first column is not created. Perhaps you could deal with this by trapping for when the second column is visible and the first is not, but this would be pretty difficult. You would have to change the UIElement in the second cell to show the value from the first cell in the same row, and also pick up the appearances.
Also, it does not appear that even the code you have here is correct. Why are you hard-coding the X of the cellUIElement rect to 20?
I don't think what you are attempting to do here is a simple task at all and it's certainly not something I could work through here in a forum post.
Perhaps you should Submit an incident to Infragistics Developer Support, but I suspect they will tell you that this is more of an issue for consulting than support.
There may be a simpler approach you can take using RowLayouts. But it will require a certain amount of experience with GridBagLayouts. What you could do is set up your band to use a RowLayout. Then you could add an unbound column to the band which spans the two columns and occupies the same space as the two actual columns you have here. You can't do this in the designer, you would have to do it in code, because the designer will prevent you from having overlapping cells.
Once you do that, you could use the InitializeRow event of the grid and set the Hidden property on either the two "real" cells, or the unbound cell so that only one or the other displays in each row. You would also, of course, need to copy the value of the real first cell into the unbound cell, as well as any appearances you wanted.