S
stephenculver
I have a list view in .NET 2005.
I have setup the list view so that when the user clicks a column the
list is sorted for them (on the Column Click event).
I have two main problems with this:
In the list view I have many columns, and to view them all the user
must scroll with the horizontal scroll bar.
When they do and click on a column, when I refresh the list with a
newly sorted version, there seems to be no way to tell the list view to
make sure the column they sorted by is still visible (it automatically
goes back to the beginning of the columns on the screen).
This was fine, until some users keep trying to DOUBLE click on column
headings. When they do the first click event fires the event and the
list is sorted. This process may take a second or two depending on the
list.
If they double-clicked, though, the second click seems to be being
cached somewhere, because when the first event finishes, a second one
fires, and this time it fires for the new column that appears on the
screen.
More precisely, say there are 10 columns, and only 2 can be displayed
on the screen at once. The user goes to column 10 and sorts by
double-clicking. WHen they do, the list refreshes and the second click
acts on column 2 since that is the column now on the screen where they
clicked after the first event fires.
Well, I have tried to disable the list view. Tried turning the event
off and then back off, and tried modifying the header style, but no
matter what I do this still seems to happen.
Is there any way to kill the second event that seems to be firing.
Alternatively, is there any way to make the columns scroll back the way
they were before the refresh (back to column 10 in the example).
Any help would be appreciated.
I have setup the list view so that when the user clicks a column the
list is sorted for them (on the Column Click event).
I have two main problems with this:
In the list view I have many columns, and to view them all the user
must scroll with the horizontal scroll bar.
When they do and click on a column, when I refresh the list with a
newly sorted version, there seems to be no way to tell the list view to
make sure the column they sorted by is still visible (it automatically
goes back to the beginning of the columns on the screen).
This was fine, until some users keep trying to DOUBLE click on column
headings. When they do the first click event fires the event and the
list is sorted. This process may take a second or two depending on the
list.
If they double-clicked, though, the second click seems to be being
cached somewhere, because when the first event finishes, a second one
fires, and this time it fires for the new column that appears on the
screen.
More precisely, say there are 10 columns, and only 2 can be displayed
on the screen at once. The user goes to column 10 and sorts by
double-clicking. WHen they do, the list refreshes and the second click
acts on column 2 since that is the column now on the screen where they
clicked after the first event fires.
Well, I have tried to disable the list view. Tried turning the event
off and then back off, and tried modifying the header style, but no
matter what I do this still seems to happen.
Is there any way to kill the second event that seems to be firing.
Alternatively, is there any way to make the columns scroll back the way
they were before the refresh (back to column 10 in the example).
Any help would be appreciated.