BCGSuite for MFC
CBCGPGridRow* CBCGPGridCtrl::FindRowByData ( DWORD_PTR  dwData,
BOOL  bSearchSubItems = TRUE 
) const

Finds a row by user-defined data.

Returns
A pointer to row, or NULL if the row with specified data does not exist.

Use this method to find a row by user-defined data. You can associate a row with data passing a DWORD value in constructor of CBCGPGridRow object or using the CBCGPGridRow::SetData method.

Parameters
dwDataSpecifies the value to look for.
bSearchSubItemsIf TRUE, the grid control will search subitems for the row with specified data.