Purpose
List of grid conditions that are to be considered when drawing rows.
Class
Type
Access
Data Type
Description
Provides a list of grid conditions that can draw rows in different grids. The list of grid conditions is an object of the class bGridConditionList. New grid conditions can be added by bBrowser:GridCondition:Add(). Whether grid conditions are defined can be checked with the method bBrowser:ExistGridConditions().
All rows for which no grid conditions exist are drawn with the grid from bBrowser:DataView object.
So that changes that were made in the list of grid conditions can be implemented, all data must be re-read by the method bBrowser:Refresh().
Samples
In the following sample a grid condition is defined in which all customer are highlighted for which the field FEMININE contains the value TRUE. As grid the grid style BGRID_CONVEX is uses.
LOCAL odbsCUSTOMER AS DBServer
LOCAL oBrowser AS bBrowser
LOCAL oGrid AS bGrid
LOCAL oGridCondition AS bGridCondition
// create browser and show it
odbsCUSTOMER := DBServer{"CUSTOMER"}
oBrowser := bBrowser{oOwner,;
1000,;
Point{0, 0},;
Dimension{300, 250}}
oBrowser:Use(odbsCUSTOMER)
oBrowser:Show()
// define grid for the grid condition
oGrid := bGrid{BGRID_CONVEX}
// define grid condition
oGridCondition := bGridCondition{"Server:FEMININE",;
odbsCUSTOMER,;
oGrid}
oBrowser:GridCondition:Add(oGridCondition)
// IMPORTANT
// -> Reread data
oBrowser:Refresh()
See Also
bBrowser:ExistGridConditions()
Page url: http://www.YOURSERVER.com/index.html?bbrowser_gridcondition.htm