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.
Hello LaneCountryAIRS,
One way to achieve this would be applying a preset. Please take a look at the following thread which is similar to this:
http://forums.infragistics.com/forums/t/17257.aspx.
Please do not hesitate to ask if something comes up.