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
260
UltraGrid designer properties not resolved
posted

Hi, I have a user control and have a grid inside that. I am setting Grid's one of the columns header TextHAlign as Center. 

I could find this settings in designer file

appearance56.TextHAlignAsString = "Center";
ultraGridColumn3.Header.Appearance = appearance56;

 

If I run the App it doesn't center the header caption. I have figured out some wired and bizarre hacks to make it work.

After InitializeComponent() in constructor If I set the settings for this specific column or someother column, then magically all settings are applied and works fine.

ultrarid.DisplayLayout.Bands[0].Columns[1].CellAppearance.TextHAlignAsString = "Center";

Another hack is, if query that property in VS immediate window, it works.

 

Any help is appreciated.

Thanks,

Se