
March 21, 2009 16:04 by
Simon
I had a requirement to create a number of forms which were all basically the same except for the text displayed in the labels. Rather than create what was essentially the same form over and over again, I decided to put the text for the labels in my database and set the text at runtime. This was quite straight forward to implement, however when the forms were displayed, the controls that were all perfectly lined up at design time were no longer in line. I managed to track this down to a what I see as a bug with the Infragistics UltraGrid control that I had placed my labels and text boxes etc in. It turned out that because I had left the text property of the UltraGrid blank at design time, when I set it at runtime it caused all the other controls to move out of line. Simply setting the text property to some default text solved my problem.
I was using a old version of the UltrGrid control (v7.3) so I haven't bothered logging this as a problem with Infragistics.
8d664811-dfba-4a57-9ad0-426477c2abd5|0|.0