Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1140
UltraGrid Designer...
posted

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

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    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.

     

Children