ShowRecCount 

Syntax:             BOOL ShowRecCount (BOOL bShow);

Return Value:    TRUE  if the operation was successful, FALSE otherwise.

Parameter:        bShow       Specifies the further visibility of the record counter display field (0 or 1).

Remarks:

Call this method to show / hide record counter display field of  ELS-QB component.

Note:  by default  the record counter display field of  ELS-QB component is always visible.

 Example:

This sample code shows how to allow the end user to toggle counter display fieldof ELS-QB control.

void CELS_QBDemoView::OnInitialUpdate()

{

............................

............................

m_bShowRecCount = TRUE;

}

// Some command handler

void CELS_QBDemoView::OnCommandToggleRecCountDisplay()

{

if(m_QBCtrl.ShowRecCount(!m_bShowRecCount))

{

m_bShowRecCount = ! m_bShowRecCount;

// Refresh the contents of the result grid

m_QBCtrl.Execute();

}

               }