DataColumn.Block Property (Typed) | |
A code block associated with the data column. If set, it is used to filter the data in/out of the data column.
Namespace:
XSharp.VO.SDK
Assembly:
XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.21
Syntax VIRTUAL PROPERTY Block AS USUAL GET SET
public virtual Usual Block { get; set; }
Request Example
View SourceProperty Value
Type:
UsualA code block associated with the data column. If set, it is used to filter the data in/out of the data column.
Examples
This example sets the code block for a calculated Wages column where HoursWorked and HourlyRate are fields in your database. These lines would appear inside your DataBrowser:Init() method:
1oMyColumn:BlockOwner := SELF:Server
2oMyColumn:Block := { | oVar | oVar:HoursWorked * oVar:HourlyRate }
3
See Also