Hello, I have a grid located in an ultra panel on my form. I set up all the grid column settings as well as other grid settings in the designer, however at runtime all the setting are ignored and the grid reverts back to it's default settins.
Any ideas on why this happens and how to stop it? Thank you.
The first picture shows it set up in the designer.
Now here it is at run time? What gives??
HOWTO:How can I define columns in the grid at Design-time and bind them at run-time so that some fields of the data are excluded from the grid?
Ok, I just pulled out the UltraPanel that the grid was sitting on and guess what, it works as shown in the runtime view below. So can anyone tell me why this is?
Thank you.
Hi,
I can't see any reason why the UltraPanel (or any panel) would make any difference here. The only significance of having the grid on a panel is that the BindingContext would be different. The BindingContext is determined by the containing control by default. But there's no reason why having a different BindingContext should make the grid lose it's layout - unless maybe you are binding the grid to a relationship in a DataSet instead of a table.