<< Return to Main Index

< Return to Class Index

CGXGridCore::GetCurrentCellControl

CGXControl* GetCurrentCellControl( );

Return Value

A pointer to the CGXControl-object associated with the current cell. It is NULL if no valid current cell exists.

Remarks

Determines the coordinates of the current cell and returns a pointer to the CGXControl-object associated with the current cell.

Example

This example illustrates a typical usage of the GetCurrentCellControl method.

// Reset edit-mode for current cell
CGXControl* pControl = GetCurrentCellControl( );
if (pControl)
{
   if (pControl->GetModify( ))
      pControl->Store( );
   pControl->SetActive(FALSE);
   pControl->Refresh( );
}

See Also

CGXGridCore::GetControl

CGXGridCore

Class Overview | Class Members