- I would like scrolling of the grid to be one column at a time rather than in fractions. It is similar to what Excel does. So one would not see a complete column starting at the the left-edge of the grid
- When the app start, the grid should show a certain special column (say XX) as the first column even thoug there are other other columns to its left like this
A B C XX D E F
It would come up with left most visible column as XX
XX D E F ( while columns further left like A B and C can be accessed by scrolling left)
Hi,
There's nothing like this built-in to the grid. I guess you could get rid of the grid's ScrollBar and then place your own under the grid and handle the scrolling that way. You could trap for changes in your scrollbar and then using the methods on the ActiveColScrollRegion in the grid to scroll a particular column into view on the left.
I asked
When the app start, the grid should show a certain special column (say XX) as the first column even thoug there are other other columns to its left like this
In response you said
Mike Saltzman"]You could trap for changes in your scrollbar and then using the methods on the ActiveColScrollRegion in the grid to scroll a particular column into view on the left.
Position seems to be method I am looking for on the ColScrollRegion for making XX the first column in the example above.
- Do you agree that Position would do the job?
- What is the Position value relative the left edge of the XX cell?
- How do I find the co-ordinates of left edge of the cell XX?
Thanks!
Sorry for the confusion. My response was to your first question, not the second.I was describing how you might get the grid to scroll one column at a time.
To scroll so that a particular column is in view (and left-aligned) you can use the grid.ActiveColScrollRegion.ScrollColumnIntoView method.
It would be nice to have scrolling to column as I call it, as an in-built function/option for the grid's horizontal scroll bar as quite a few people seem to like making thier grids like Excel (me included) as that is what our users are used to. I think making grids like Excel in general is a great selling point for Infragistics.
Or has this already been added? I noticed this post was originally made more than 4 years ago!
I'm not sure I understand what you are asking for.
I am not aware of any Excel UI that allows you to specify a specific column to scroll into view. Is there such a thing?
Hi Alex,
Oh, I see. No, there's no way to do that. You should Submit a feature request to Infragistics
Ahh, I think may had misunderstood the original posters requirements.
All I want to do is copy Excels scrolling method i.e. when you move the scroll bar at the bottom of the screen, it does not perform a smooth scroll it instead moves to the nearest column. So effectively scrolls column by column.
Open up Excel, move the scroll bar slightly and you will see what I mean, you won't get half of column A it will move right onto B. Its this functionality that I would like to see as an option in the grids.
Thanks,
Alex