[Gambas-user] Questions on tableview
Bodard Fabien
gambasfr at ...11...
Mon Dec 13 19:26:27 CET 2004
Le lundi 13 Décembre 2004 13:14, Eilert a écrit :
> Hi,
>
> I have a tableview here, named tb. I read data from a file, 2 columns
> and a lot of rows. When I add the data, I first determine the number of
> columns and rows and the column width of column 2:
>
> tb.Rows.Count = zlr
> tb.Columns.Count = 2
> tb.Columns[1].Width = tb.Columns[1].Width * 2
>
> Now, one of them (or all of them?) calls the tb_Data event sub. My
> question is, which one does? Do they all? Will all of them try to insert
> data? That would be a bit unefficient, so there should be a way to
> "allow" for data being inserted. Or is the interpreter intelligent
> enough to look ahead and see for itself when it's time to insert data?
>
> Rolf
The table view redraw the showed data so... the new added too...
and you need to have an array in the backend to know what data to draw...
Fabien
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
More information about the User
mailing list