[Gambas-user] Ask Clearing all tableview contents

Benoit Minisini gambas at ...1...
Sun Oct 26 10:26:28 CET 2008


On dimanche 26 octobre 2008, Leo Sendra wrote:
> On jeudi 16 octobre 2008, Leo Sendra wrote:
> >> Hello all, I have a problem in clearing all tableview contents.
> >>
> > >I have already use clear method, like this: tableview1.clear
> > >But, not all rows in tableview1 are cleared.
> > >Just a few of them are cleared.
> > >How to empty a tableview??
> >
> >Do you use the Data event to fill the data?
> >
> >--
> >Benoit Minisini
>
> Yes... I use data event to fill the data. So, how do I clear my
> tableview????
>
> Thanks..
>

The Clear() method only clears cells that were explicitely set. Cells fills by 
the Data event must be clear by not setting cell data in the Data event.

Regards,

-- 
Benoit Minisini




More information about the User mailing list