Ejemplo n.º 1
0
void CXTPReportGroupRow::SetSelectedMostDeepChilds()
{
	for (int II = 0; II < m_pControl->GetRows()->GetCount(); II++)
	{
		CXTPReportRow* pRow = m_pControl->GetRows()->GetAt(II);
		if (pRow->GetChilds(FALSE)) continue;
		CXTPReportRecord* pChRec = pRow->GetRecord();
		if (pChRec)
			pChRec->m_bSelectedAsChildFlag = pRow->IsSelected();
	}
}
Ejemplo n.º 2
0
void CXTPReportGroupRow::UpdateSelectedMostDeepChilds()
{
	for (int II = 0; II < m_pControl->GetRows()->GetCount(); II++)
	{
		CXTPReportRow* pRow = m_pControl->GetRows()->GetAt(II);
		if (pRow->GetChilds(FALSE)) continue;
		CXTPReportRecord* pChRec = pRow->GetRecord();
		if (pChRec)
			pRow->SetSelected(pChRec->m_bSelectedAsChildFlag);
		//if (pChRec && !pRow->IsGroupRow())
		//  pRow->SetSelected(pChRec->m_bSelectedAsChildFlag);
		//else if (pRow->IsGroupRow())
		//  pRow->SetSelected(FALSE);
	}
}
void CXTPReportGroupRow::UpdateSelectedMostDeepChilds()
{
	for (int nRow=0; nRow<m_pSection->GetRows()->GetCount(); nRow++)
	{
		CXTPReportRow *pRow = m_pSection->GetRows()->GetAt(nRow);

		if (pRow->GetChilds(FALSE))
			continue;

		CXTPReportRecord *pRecord = pRow->GetRecord();
		if (pRecord)
		{
			pRow->SetSelected(pRecord->IsSelected());
		}
	}
}