I have a grid where I dynamically insert two or move columns based on user input.
Than after binding the grid, I set column fixing for the first four columns overall. Note that the dynamically inserted columns begin at column 8.
However, after setting column fixing for the first four columns, my inserted columns--which start at column 8--get moved to the very end of the grid (starting at column 13 instead).
Is there any explainable reason for this? Has anyone else encountered this issue?
Hi FireStorm12,
I've tried to replicate this in 11.2, however I had no success. I've attached the page I tried with. What version and build number do you have? You could try to upgrade to the latest Service Release. Also, with setting the Visible Index, be sure to do it after adding it to the columns collection.
-Dave
David,
Thank you for the reply.
Yes, you have the scenario right, and the columns are inserted on server side. The first several columns are also fixed on server side, although those columns are created in the VS HTML designer.
I have gone back and tried setting the VisibleIndex of the inserted columns, but that has no apparent effect.
Have you tried to set the VisibleIndex of the inserted columns? Let me try and understand the scenario. You bind the grid and have X number of columns at the start. Then at some later point (let's say on a button click), you add two more columns. Then you fix columns? Is that via the UI, client code, or server code? And upon doing that, the inserted columns appear as the last columns?
regards,David Young
That of course should have been, "dynamically insert two or more columns...".