We want to add a new row under the selected row.
We do it (roughly) with the following code:
int index = this.Grid.Selected.Rows[0].Index; UltraGridRow row = this.Grid.DisplayLayout.Bands[0].AddNew(); row.ParentCollection.Move(row, index + 1);
This works fine except the grid is scrolled to the end. In longer grids, the added row remains outside the visible region.
Is it possible to add a new row under the selected row and still keep the selected row and the added row within the visible region?
PS: The solution proposed here is not an option for us.
Hi, When you call AddNew, the newly-added row is scrolled into view. Since the row is always added at the bottom of the grid, the grid scrolls to the bottom.Then when you move the row, you are moving it out of view. So the simple solution is to just scroll that row back into view. this.Grid.ActiveRowScrollRegion.ScrollRowIntoView(row);
Thank you for the answer, Mike.
This solves my problem.
Two remarks:
Infragistics' help files indexed by Google return 404's lately. For example: http://help.infragistics.com/Help/NetAdvantage/WinForms/2012.2/CLR4.0/html/Infragistics4.Win.UltraWinGrid.v12.2~Infragistics.Win.UltraWinGrid.UltraGridColumn~FilterOperandStyle.html Will they be online again? Or shall we look for an alternative way of accessing your help files?
The GUI elements of the Infragistics' forums aren't rendered correctly (though still readable and comprehensible).
Hi,
I can't speak for Google. But it looks like the Help URLs on our web site have changes.
If you change:
http://help.infragistics.com/Help/NetAdvantage/
to
http://help.infragistics.com/Help/Doc/
it works. Not sure why that happened. I will look into it.
Also, I reported the broken help links to our web team. They are already aware of the problem. The old links are supposed to be redirecting to the new ones, but they are not. So I expect it will be fixed soon.
No problem at all. Thank you for the quick responses for the other questions. They were more important.
Oh, sorry, I missed that part of your post. I was having some problems with some forum posts, yesterday morning. But I think it had to do with the release of 13.2 and the unusual amount of traffic on the site. And it's working fine for me today. :)
Thanks. Now, I know how to access the help docs.
The second issue "The GUI elements of the Infragistics' forums aren't rendered correctly (though still readable and comprehensible)." I think, you've updated your css. The problem disappeared when I refreshed.