Board index » cppbuilder » Using StringGrid
Neil
![]() CBuilder Developer |
Using StringGrid2005-12-20 11:23:15 PM cppbuilder88 I want to clear all the items in StringGrid when I exit a tab, I add the following on a Hide event of the tab // Clear all fields for (iRow = 1; iRow <= 16; iRow++) StringGrid1->Cells[iCol++][iRow] = NULL; This did not work, so I tried // Clear all fields for house code A for (iRow = 1; iRow <= 16; iRow++) StringGrid1->Cells[iCol++][iRow] = " "; This did not work, so I tried // Clear all fields for house code A for (iRow = 1; iRow <= 16; iRow++) StringGrid1->Cells[iCol++][iRow] = 0; This still didn't work? Everytime I opened the tab, the information previously still exists? What can I do to corrrect this? Thank you, Neil |