0

I'm using iGrid.NET.

If the columns are bigger than the available space, a scrollbar is shown:

enter image description here

Now when I click on a column which is partly outside the visible area, the clicked column is shown at the left start:

enter image description here

I know it's unusual, but I would like the scrollbar to stay exactely where it is. I want to have col 1 shown on the left.

How could I do this?

tmighty
  • 10,734
  • 21
  • 104
  • 218
  • I don't know iGrid.NET, but it appears that with ListView, you wouldn't have the issue. Would there be any inconveniences by using ListView instead? – Sideways Apr 10 '21 at 15:57
  • @Sideways Thank you, but I have intentionally abandoned ListView, I couldn't customize it enough. – tmighty Apr 10 '21 at 16:22
  • 1
    Only thing I could think of is a workaround, since I don't know iGrid.NET, as mentioned. You could wrap the grid inside a panel with auto scroll enabled, and then extend the grid's width to fit all columns. This would in a horizontal scrollbar being able to scroll through the list, whilst not jumping to elements. Or use a seperate HScrollBar which changes its position. Whilst these possibilities are not very clean compared to other ways, these can still be implemented without one being able to notice at all. – Sideways Apr 10 '21 at 16:46

0 Answers0