Skip to content

RequestFindColumnValue - cCJGrid

Attempts to find a value in a column and move to the row that contains that value in a static grid

Type: Procedure

Parameters

Parameter Type Description
iColumn Integer column number to perform search
sValue String value to search for
bFindGE Boolean True if the search is a find greater than or equal, False if search is find equal.
iStartRow Integer row to start search at

Syntax

Procedure RequestFindColumnValue Integer iColumn String sValue Boolean bFindGE Integer iStartRow

Call Example

Send RequestFindColumnValue iColumn sValue bFindGE iStartRow

Description

RequestFindColumnValue attempts to find sValue in iColumn starting at row iStartRow. If bFindGE is True, it performs a find GE search; if False, it performs a find EQ search. If the target is found, the found row will become the SelectedRow.

This message can only be used with static grids using statically filled datasources. cCJGrid objects are static. A cDbCJGrid object may be static depending on how it is used (see pbStaticData).

Also see FindColumnValue in the cCJGridDataSource class. This lets you search the data source for a column value without the row becoming selected if found.