Howdy folks I have a question. My column chooser for a grid I have seems to repeat a row for every column in the grid. In other words once the controls render my grid layout looks like this.
column1 column2 column 3
some value some value some value
My column chooser has two bars or lines at the top and an interface displaying my 3 columns. If I slide the grey bars around I find that each of the bars is an interface that has my 3 columns listed on each of the instances.
OK so that is not too bad, but sometimes this grid can have up to 30 columns, so now I get a column chooser filled with grey lines each one having a list of the 30 columns, and the bottom of my chooser only shows 2 columns with an arrow to scroll though the other 28 columns and select or deselect them. I am certain I am doing something wrong in the implementation of this control, cause this is basically unusable from and end users point of view. Can someone set me straight as to why this would be happening and what I would need to do to correct it? I dont understand why it is repeating the chooser row for each column. Thanks for your time and energy, and any help is greatly appreciated.
George the guy who loves these controls :-D
I'm not sure I understand what you are describing? Can you post a screen shot?
It sounds like maybe your ColumnChooser has somehow gotten RowScrollRegions turned on or something like that. If that's the case, it indicates some designer corruption. Are you using the ColumnChooser built-in to the grid or a separate one you placed on a form?
Hi Mike I dropped the column chooser seperate from the one with the grid. again I probably implemented this wrong, but I cut and pasted one from another part of the application. It is doing the same thing as well, and I took this project over from another developr who had a stroke and basically is non compus mentis so he is unavailable for questions.
I have included a screen shot to show you how it behaves.
Thanks for your time and energy.
That definately looks like RowScrollRegions. I think I was correct and that there has been some sort've designer corruption here.
The easiest thing for you to do might be to simply look at the property setting that have been applied to the ColumnChooser and take note of them, then delete the control and replace it with a new instance.
If that's too complex, then the next step would be to try to remove all of the RowScrollRegions in the existing control. You should be able to click and drag those horizontal bars and drag them all the way to the top (or maybe it's bottom, I forget) of the ColumnChooser to remove them.
Do the bars show up at design-time? Or only at run-time?
Mike they show up at design time and run time. At run time I candrag them l to the top aney do go away, tha is jusa pain in the glutes. I followed your suggetion and just added a new control, and it works fine. That is what I get for doing things the easy way and usingte previous developers code. :-D Everything is hunky dory now. Thanks so much.