I have a grid with 100's of rows and when i want to preselect a row I am setting the ActiveRow property and setting the Row selected property to True (see below) but I want the selected row to be visible on the screen and it appears to scroll close to it but the selected row is one row below the visible display. How can I move that selected row to the middle or top or just visible to the grid.
ugReleases.ActiveRow = rowueryStringSelectedrowQueryStringSelected.Selected = True
Thanks
Scott
I am using 10.2 (10.2.20102.1004). It appears to me that the ActiveRow is being set and moved to one row at the bottom just out of visible view. If i scroll up one row, I can see the active row selected. Is it possible that the viewable area is hidden by one row? What should the behavior be in that should it move it to the top of the viewable area? Is there any way to programmatically set the activerow to be at the top of the viewable area? It is part of a larger project so hard to break it out into its own code.
Hello Scott,
I think that when you set the ActiveRow of the UltraGrid and this row is not in the visible rectangle it automatically will scroll the Row into view.
So if you are still not able to get the desired results, coluld you please let me know what version of NetAdvantage controls you are using and if there are any service release applied to it or if you could attach a small sample reproducing this behavior I will be glad to take a look at it.
it's doing nothing?? i tried it and it's working fine with me. which version are you using?
Unfortuantely, this did not seem to change anything (and I did change the name of ultraGrid1 to the name of my grid) and the ActiveRow is being set before I called this. Any other ideas?
ultraGrid1.ActiveRowScrollRegion.ScrollRowIntoView(ultraGrid1.ActiveRow);