Clear MSFlexGrid

Need Help
01-30-2003, 09:42 AM
I am using MSFlexGrid to show data on the screen. When a command button is pushed one type of data shows, another button is pushed then different data shows, etc...


What I want to know is how do I clear the information that is already on MSFlexgrid, so the new data can be shown?

The problem is that not all the data amounts are the same so one set has 50 entries while another has only 3. If I overwrite the 3, no problem, try to overwrite the 50 there is a problem.

Thanks for any idea.

UncleSam
01-30-2003, 11:16 AM
can't you use msflexgrid1.clear?

Optikal
01-30-2003, 11:59 AM
You can also do MyGrid.Rows = MyGrid.FixedRows, then just add the new data (which includes adding new rows as needed).

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum