This question is locked. New answers and comments are not allowed.
I've got a customer requirement to allow the user to select which columns to display from the complete list being returned from the webservice.
I'm handling this ok, and *almost* everything is working, but I've hit a point I can't seem to get past.
I'm doing the column selection in a 'flip panel', the user presses "Save", I get the information down to to the grid and manipulate it into the desired format, then the panel flips back to the grid.
The problem is, I believe, a visual one...let's say for example that the first three columns have header names One, Two, and Three.
I delete the 2nd column, and what I get when I flip back I've got column headers One and Three, however under that 2nd column header, I have an extraneous small column showing, and column Three contains information from the original column Two and column Three one overwritten on the other.
I've found that if I scroll to the right, then back, it's cleared up and it's correct. I tried to do a scroll all the way to the right and then all the way to the left programmatically after setting the fields, but again, I believe it is a visual thing, and that change isn't going to happen while it is not on-screen.
Has anyone dealt with this, or have any ideas on how to get rid of it?
I know the question is going to arise, so how I do my rearrangement is to send to the View an Observable Collection of what I want to display. I spin through the grid setting every column to not visible, then I rearrange the columns according to my Observable Collection and set the ones the user wants to see visible.
-Dave
I'm handling this ok, and *almost* everything is working, but I've hit a point I can't seem to get past.
I'm doing the column selection in a 'flip panel', the user presses "Save", I get the information down to to the grid and manipulate it into the desired format, then the panel flips back to the grid.
The problem is, I believe, a visual one...let's say for example that the first three columns have header names One, Two, and Three.
I delete the 2nd column, and what I get when I flip back I've got column headers One and Three, however under that 2nd column header, I have an extraneous small column showing, and column Three contains information from the original column Two and column Three one overwritten on the other.
I've found that if I scroll to the right, then back, it's cleared up and it's correct. I tried to do a scroll all the way to the right and then all the way to the left programmatically after setting the fields, but again, I believe it is a visual thing, and that change isn't going to happen while it is not on-screen.
Has anyone dealt with this, or have any ideas on how to get rid of it?
I know the question is going to arise, so how I do my rearrangement is to send to the View an Observable Collection of what I want to display. I spin through the grid setting every column to not visible, then I rearrange the columns according to my Observable Collection and set the ones the user wants to see visible.
-Dave