Click or drag to resize

DataColumn.Block Property (Typed)

X#
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 
Request Example View Source

Property Value

Type: Usual
A 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:
X#
1oMyColumn:BlockOwner := SELF:Server    // The server object attached to the browser
2oMyColumn:Block := { | oVar | oVar:HoursWorked * oVar:HourlyRate }
3//where oVar is the BlockOwner
See Also