Returns each non-fixed row's hidden/displayed property.
bool GetRowsHide( vector<int> & vnHides )
false if grid control does not have any non-fixed row, otherwise true
Example codes can be pasted to doExample() function in GridControl's examples to run
m_GridCtrl.SetRows(10,false);//rows are expanded MessageBox(GetSafeHwnd(), "Look at the command window"); vector<bool> vbool={1,1,1,0,1,0,1,1,1}; vector<int> visible; vector<int> vhide; printf("There are %d non-fixed rows!\n",m_GridCtrl.GetRows()-m_GridCtrl.GetRowOffset()); MessageBox(GetSafeHwnd(), "continue"); for(int ii=m_GridCtrl.GetRowOffset();ii<m_GridCtrl.GetRows();ii++) m_GridCtrl.SetCell(ii,flexcpText,ii,0); MessageBox(GetSafeHwnd(), "continue"); m_GridCtrl.SetColAlignment(0,flexAlignCenterCenter,false); MessageBox(GetSafeHwnd(), "Look at the command window"); m_GridCtrl.ShowRows(vbool);//row 4,6 are hidden m_GridCtrl.HideRow(7,true);//row 7 is hidden m_GridCtrl.IsRowHidden(7)?printf("row 7 is hidden\n"):printf("row 7 is not hidden\n"); MessageBox(GetSafeHwnd(), "Look at the command window"); m_GridCtrl.GetRowsShow(visible,false); for(int jj=0;jj<visible.GetSize();jj++) printf("Row %d is visible!\n",visible[jj]+m_GridCtrl.GetRowOffset()); MessageBox(GetSafeHwnd(), "Look at the command window"); m_GridCtrl.GetRowsHide(vhide); for(int kk=0;kk<vhide.GetSize();kk++) printf("%d",vhide[kk]);//print 1 if the corresponding row is hidden
GridControl.h