Late binding

DataWindow .NET provides two sets of methods that let you access property values in a DataWindow object using late binding.

Describe and Modify

The Describe and Modify methods use strings to specify the property names. This is a simple example:

DW1.Describe("empname.Border")
DW1.Modify("empname.Border=1")

Both methods can get and set the values of multiple properties. Describe can take a string that contains the name of multiple properties separated by spaces. Modify can take a string that contains the names and values of multiple properties.

GetProperty and SetProperty

The GetProperty and SetProperty methods use strings as well. GetProperty is identical to Describe. SetProperty can set only one value at a time. Unlike Modify, which combines property names and values in a single string argument, SetProperty has two arguments, one for the property name, and one for the value to be set:

DW1.GetProperty("empname.Border")
DW1.SetProperty("empname.Border", "1")