I am trying to find a way to import the column definitions of a GridView at design time.
I bind my GridView to a custom business object at runtime, and I do not want to have to bind the GridView to a BindingSource at design time just to get column definitions.
There must be some way to load serialized GridView XML definitions at design time to define a GridView's columns without having to define each column manually as an unbound column.
Check out how the Janus controls do this - it's perfect. You can save and load definitions of the grids while in design view. This allolws you to use code generators to define your grid columns and simply load those definitions at design time, then make any last-minute adjustments.
-- Greg
I bind my GridView to a custom business object at runtime, and I do not want to have to bind the GridView to a BindingSource at design time just to get column definitions.
There must be some way to load serialized GridView XML definitions at design time to define a GridView's columns without having to define each column manually as an unbound column.
Check out how the Janus controls do this - it's perfect. You can save and load definitions of the grids while in design view. This allolws you to use code generators to define your grid columns and simply load those definitions at design time, then make any last-minute adjustments.
-- Greg