This forum is temporaily read-only. All existing discussions remain available for reference. For new questions, bug reports or support requests, please contact us at mail@lmdsupport.com.
Sort on click only in specific row
Hi,
Is it possible to sort on click only in specific header row like in this example:

Is it possible to sort on click only in specific header row like in this example:

Comments
Best regards,
Grzegorz
My idea was to use this like that:
void
__fastcall
TfoCalculationEngineTest::ElXTreeHeaderSectionCellClick(TElXCustomHeader
*Sender, TElXHeaderSection *Section, TElXHeaderCell *Cell)
{
if(Cell->RowIndex == (Sender->RowCount-1))//only for last row
{
//I do something else (not sorting)
}
else
if(Cell->RowIndex == (Sender->RowCount-2))
{
//I do sort trying to imitate sort click
TElXTree* pTElXTree = dynamic_cast<TElXTree*>(Section->Owner->Owner);
if(pTElXTree)
{
pTElXTree->OnHeaderSectionClick(Sender, Section);
}
}
}