DataWindow object properties apply to the DataWindow object itself, not to the DataWindow control or DataStore that contains it. There are several ways you can affect the values of DataWindow object properties at runtime:
Use the general-purpose Describe and Modify methods to get and set property values.
Use the GetProperty and SetProperty methods.
Use properties of classes derived from Sybase.DataWindow.GraphicObject.
Use descendants of the ExpressionBasedProperty class. Each descendant has two properties: Expression and Value. The Expression property is a String. The Value property is of the datatype required in the expression.
For many properties, enter expressions in the painter that set properties conditionally at runtime.
Use the DataWindowSyntaxFromSql method to generate DataWindow source code that sets some DataWindow properties. You can use the generated code in the Create method to create new DataWindows.
The tables in “Controls in a DataWindow and their properties” list the properties for each control within a DataWindow object, with short descriptions. There are also tables for DataWindowSyntaxFromSql object keywords. After the first table of DataWindow properties, the tables are alphabetical by control and keyword name.
The tables include check mark columns that identify whether you can use that property with Modify (M) or DataWindowSyntaxFromSql (S). When (exp) is included in the description, you can specify a DataWindow expression as the value for that property. A DataWindow expression lets you specify conditions for determining the property value.
You can get the value of all properties in all tables At runtime, you can use Describe or GetProperty to get the value of all properties listed in all tables.
The second half of this chapter is an alphabetical list of properties with descriptions, syntax, and examples. When you find a property you want to use in the first part, look up the property in the alphabetical list to find the specific syntax you need to use. In the tables that describe the property values, (exp) again indicates that you can use a DataWindow expression for the value.