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
425
How do you set DefaultValueAttribute values for WinGrid design-time serialization?
posted

I have the UltraGrid sub-classed and will be using this class to instantiate 100+ grids in the app. Absolute property values that can not change are being set in OnEndInit and all is well here. However, I need to be able to set default property values of the grid that will be used when the grid is dropped onto a form. For example, the "this.DisplayLayout.Override.HeaderAppearance.TextHAlign" property needs to be set to the same value, say "Infragistics.Win.HAlign.Right", every time it is added to a form. Is the DefaultValueAttribute the only way to accomplish this? If so, then how? Is there an alternative? An archived forum somewhat addresses this: Subclassing Question. Thanks.

Parents
No Data
Reply Children
No Data