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??
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.
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.
Thanks for the response Mike, but I am binding the grid to the data source object at design time. The data source object (binding source) is available at design time so it's already wired up and ready to go at runtime.
I have plenty of grids in my project and all are implemented the same way and work as expected, however I have three different grids that exhibt this behavior that I can't figure out. The only difference I can think of is these three grids set on top of an Ultrapanel.
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?