Hi,
I am trying to use the Move method on rows in my spreadsheet.I my test case I have three line : when I move the first line to the second position (or the second to the first), I have a scrolling issue. The first line is "hidden" and a scrollbar appears on the right of the spreadsheet, where there was nothing before. As if I scrolled the first line out of view.
Anytime the first row comes into play, the problem occurs.
If I click the scrollbar or use my mouse wheel, the spreadsheet comes back in place and all my lines can be seen...
Here are some screenshots of the problem :
The current workaround I have found is to do :
Move Up method :
if (orig_index == 1) { SprSheet1.SetActiveRow(1); SprSheet1.SetActiveRow(0); }
Move Down Method :
if (orig_index == 0) { SprSheet1.SetActiveRow(0); SprSheet1.SetActiveRow(1); }
I have a flicker because of the updates but in the end the user is less confused and doesn't believe he "lost" a line in the process...
Any help on solving this problem more elegantly will be greatly appreciated :-)
What version of the grid are you using? This looks like an issue that was recently fixed. So if you do not already have it, I recommend that you install the latest service release.
How to get the latest service release - Infragistics Community
Hi,Thanks for your quick reply.
We're using version 7.3 (I know, I know)
The problem is that this version is blocked by a third-party provider (Misys for their software for Banking industry : Summit FT). We won't be able to change version unless they give us the go and provide us with a new patch... Unfortunately we've got to use what they give us.
I'll open a case with them and see what they tell me.
Best regards,Phil.
Excellent !
With the BeginUpdate and EndUpdate methods the Grid behaves very well and very smoothly.Just as if there was no workaround in play at all :-D
Thanks a lot,Philippe.
Hi Phil,
Obviously, the ideal thing to do would be to get the service release.
But if you want to try to fix the flickering in your workaround, you can probably use the BeginUpdate and EndUpdate method on the grid. Call BeginUpdate before you do the move, then call EndUpdate after you set the ActiveRow.