Hi!
Use AdvStringGrid , Borland Builder 6.
Grid contains 200 rows, FilterDropDown and Checkbox.
When I applied for any column RowCount=5.
After that user marked with CheckBox one or more rows.
int iRow, Cnt;
for(iRow=1; iRow <= (AdvStringGrid->RowCount -1); iRow++)
{
AdvStringGrid->GetCheckBoxState(0,iRow,StateRow);
if(StateRow==true)
{
Cnt++;
}
}
Cnt=0!
Program not found this rows. Why?
maybe the filtering has no effect on the column with checkboxes?
You need to use the real row index to get the checkbox state, not the display row index.
i.e.
AdvStringGrid->GetCheckBoxState(0,AdvStringGrid->RealRowIndex(iRow),StateRow);
Great! I did just that. thank you