I have a grid that has 55 columns. And only 6 columns are visible at a time due to the size of the columns and the first 2 columns are locked so that they are always visible.
52/53 of the columns are dates corresponding to each of the sundays in a year.
I would like the active column to be set to a particular date. Lets say it is the 41st column.
After I loaded the grid how do I set the grid so that the 41st to 44th columns are visible?
Therefore the grid shows
columns 1, 2, 41, 42, 43, 44.
I do not want to move around the columns, just the scroll bar so that the 41st column is active.
Thanks, Mark.
Hi Mark,
Thank you for contacting Infragistics Developer Support.
In order to scroll a column into view you can use the ScrollColIntoView method of the active CollScrollRegion. In your case, since you have 2 fixed columns and 4 non-fixed columns into view, you need to scroll to the 44th column. This way you will achieve the desired behavior.
I have attached a small sample demonstrating this suggestion.
Please let me know if you have any additional questions.