Defines whether the .NET control operates on the task's data view.
You can bind the task data view to a .NET control (such as a grid control) and use it instead of the built-in Table control. Since there can be many .NET controls on the form, you need to specify which .NET control will show and manage the task data view.
This property is enabled if the DataSource property name property has a value and the DisplayMember property name and ValueMember property name properties do not have a value.
When the value of this property is set to True, you can define the variables that should be seen in the .NET control by zooming into the Dataview Control Fields property.
At runtime a .NET System.Data.DataTable object will be automatically created out of the task data view and this object will be attached to the .NET control’s property that was defined in the DataSource property name property at the model level.
Any modification made to the Magic xpa variables will be automatically reflected in the .NET control and vice versa.
Note: Some grid controls create an additional blank row at the end of the grid. Usually this is governed by a property of the grid control named AllowUserToAddRows. This behavior will create inconsistency between the grid and the Magic xpa task since when the user updates this row, Magic xpa is not aware that a new record is being created, so the task will not be changed to Create mode. To avoid this behavior, it is recommended to set this property to False. Creation of new records can then be done using the Magic xpa Create Line event (F4).
Currently, this functionality is supported in Online tasks only and when the Preload View = Yes.
It is not possible to bind the data view to .NET controls in Batch tasks.
See also How Do I Bind the Data View to a .NET Control?
Since version: 2.3
|