That code won't work. You'll probably get an IndexOutOfBoundsException. The first time through the loop, you will remove row 0. What was originally row 1 will then be row 0, and what was originally row 2 will be row 1 etc. So on the second time through the loop, you remove row 1, but that is the row that was originally row 2. So the row that was originally row 1 would never be deleted. When you get far enough through removing rows, you'll get an exception.
To delete all the rows one at a time (rather than calling myFlexTable.removeAllRows()), try something like this:
int count = myFlexTable.getRowCount();
for (int i = count-1; i>=0 ; i--)
{
myFlexTable.removeRow(i);
}
or else something like this:
int count = myFlexTable.getRowCount();
for (int i = 0; i< count; i++)
{
myFlexTable.removeRow(0);
}
Paul