I have 2 command buttons, "Remove" and "Add" in reference to adding and removing rows on an MSHFlexGrid.

For the "Remove" code, I use:

FlxGrid.RemoveItem (FlxGridRow)

to remove whatever row is selected. This works fine but it seems to create a hidden row.

To add a new row, I now have press the "Add" command button twice to get the new row to show. I follow through the code, and it is firing and I even see a little "flicker" on the grid like a new row appearing and than dissapearing. When I hit my "Add" button again, then the new row appears with the appropriate data.

Let's say I "Remove" 3 rows, then I have to press my "Add" button 4 times to get the new row to appear.

My "Add" code works fine if I just add new rows without removing any first.

I follow the code and count the rows created and removed and it all appears to be as it should...like if I start with 5 rows, remove 3 and add 4, then the new total is 6 although I can only see 3 of them. I can see the last one added, but not the first 3.

Help! Thanks.