Posted 26 June 2025, 6:18 am EST
Hi
We are using Unbound WPF Flexgrid with cellfactory. It has many columns.
Need to select cell in first tow and last column.
Tried select also, but still could not force to scrollinto last column.
Please help
Forums Home / ComponentOne / WPF Edition
Posted by: david on 26 June 2025, 6:18 am EST
Posted 26 June 2025, 6:18 am EST
Hi
We are using Unbound WPF Flexgrid with cellfactory. It has many columns.
Need to select cell in first tow and last column.
Tried select also, but still could not force to scrollinto last column.
Please help
Posted 26 June 2025, 8:00 am EST
Hi David,
The FlexGrid uses UI virtualization, which means rows are only loaded and rendered when they come into view. It seems you are using a custom CellFactory to display custom content in the cells, which can dynamically change the size of the cells. In such cases, the cell height and width are not known to the grid in advance, and as a result, the ScrollIntoView method may not work as expected since it calculates positions based on the default cell sizes.
Could you please share a stripped-down sample project that briefly demonstrates your custom CellFactory implementation and the specific ScrollIntoView behavior you are experiencing? This will help us investigate further and suggest a suitable solution.
Best Regards,
Kartik