Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » How to find a row(s) in CExtGridWnd with a particular value in some column. Collapse All
Subject Author Date
Vitali Bounine May 26, 2006 - 6:56 PM

Is there any functionality to find row(s) in CExtGridWnd by column value without traversing the grid.

Technical Support May 28, 2006 - 12:36 PM

Unfortunately there is no searching API for the CExtGridWnd generic grid window due to following reasons:

1) The search cannot be implemented in several modes like cacheable scrolling with a known number of rows/columns and virtual scrolling with an unknown number of rows/columns.

2) Although a grid cell of a certain type can be compared with other grid cell of any other type, the comparison cannot be performed correctly for each specific task. The comparison is implemented generally and works explicitly only between cell types which are close to each other or between cells which are well convertible into OLE variant types. In some cases the comparison is implemented through string representation of cell data.

3) In most of cases, the search requires a complex tree-like rule which can be configured with some dialog for building rules, which is also specific for a particular task.

In any case, the search by traversing the entire range of data is not difficult to implement in scope of a particular task.