hi there,
i'd like to add various field layouts in the resources and change the field-layout object during runtime.
the example i found in your forum was to modify the exisisting field setting object which seems a quite long way winded in my use case. (there is no clone method for the field object)
so i come back to the strategie in assigning a new fieldlayout object. my question is: where shall i assign it in order to take effect? ( i see various properties that store a field layout, including the record)
or don't you recommend that strategie?
karle
Hello Karl,
In order to assign new FieldLayouts dynamically; which probably has been pre-populated in XAML; you need to raise the AssigningFieldLayoutToItem event and assign the FieldLayout by setting e.FieldLayout to your desired FieldLayout.
Sam
Well, how can i raise the event?
(i can not raise an event of another class using the visual basic raiseevent keyword. i have to call a method of the class which internally raises the event. which method shall i call?)
Ok i see. Thank you.
Hello,
The methods are called automatically for each item when the grid is bound or rebound to the data.