Objective Grid: Merging rows with hidden rows in between

Article ID: 726
Last updated: 11 Jun, 2018
Article ID: 726
Last updated: 11 Jun, 2018
Revision: 3
Views: 2003
Posted: 19 Jan, 2001
by Meltreger B.
Updated: 11 Jun, 2018
by Meltreger B.

Problem


How can I tell the grid to merge rows even if there are hidden rows in between?


Cause


Objective Grid sees hidden cells more like regular cells (but just temporarily not visible).


Action


An idea to get around this behavior would be to override GetStyleRowCol() and check whether the row is hidden or not. If it is hidden, simply call the base class version with CGXGridCore::GetStyleRowCol(nRow-1, nCol, …);

This way the value of the hidden row would be the same as the previous row (and then the cells would be joined together).

This article was:   Helpful | Not helpful
Report an issue
Article ID: 726
Last updated: 11 Jun, 2018
Revision: 3
Views: 2003
Posted: 19 Jan, 2001 by Meltreger B.
Updated: 11 Jun, 2018 by Meltreger B.

Others in this category