I'm getting VERY annoyed (it seems like I'm annoyed a lot, doesn't it...) with the custom Grid Designer. I Manually Define my data schema and select the "Will be supplying a datasource at runtime" option. I know it has a "Note" that informs me it will only save the Keys and Positions of the Columns and Bands, but the question is WHY???
Why can't it save whatever property settings I make (such as Hidden) so that I don't HAVE to set them programmatically? In fact, I can't even find how to set the Column property "Hidden" programmatically.
Why can't it save my property settings so that the next time I open the UltraGrid Designer to modify one of my grids, I don't have to RESET EVERY SINGLE #@$%^&* PROPERTY that I've changed from the default?
It gets REALLY OLD resetting the same properties over and over and over....
Every time I go
Wolven said:Why can't it save whatever property settings I make (such as Hidden) so that I don't HAVE to set them programmatically? In fact, I can't even find how to set the Column property "Hidden" programmatically.
You can't set hidden here because you are defining the data structure, not the grid structure. There's no hidden property on an UltraDataSource column, nor is there a hidden property on a column in a DataTable. The IBindingList interface doesn't have any way to expose Hidden on a column of data.
Having said that, you can hide the column by setting Hidden on the column in the grid at design-time after you define the data structure.So you hide the grid column, not the column in the data structure.
After you define your data structure, you go to the Column Arrangement overview of the band and you can set properties on the columns there.
My advice would be to simply use the InitializeLayout event and set up your column properties in code, though. It's a much more reliable way to do it and you will never lose your settings.
Mike, How can I make this a Feature Request? I can never seem to find a link, button, whatever to take me to the Feature Request area...
Basically, I just want to the UltraGridDesigner to SAVE whatever settings I made even though I am selecting the "Will be supplying a datasource at runtime" option and have those settings still be there when I use the GridDesigner to change my data schema later.
The Hidden property then provides the perfect reason why the Grid should NOT lose my settings each time I modify it thru the Designer. OBVIOUSLY, it remembers my settings between design and run time and from one run to the next, so, OBVIOUSLY, it IS storing the settings somewhere... So WHY does it Reset them all to the defaults each time I call up the Designer?
And, personally, I don't like setting up my controls manually within the program. There's way more than enough code just making the program do what it's supposed to do without adding thousands of lines more manually creating, setting, and maintaining the controls. I don't want that crap in my code... that's what the IDE is for.