[Gambas-user] Slow Gridview creation

Jesus Guardon jguardon at ...2035...
Thu Mar 26 16:13:06 CET 2009


Hi all

I'm trying to implement the Data event handler, but I cannot understand 
the way it must be done. I am locked out, sorry for my awkwardness.
Can anyone provide a basic working example? I need to fill a gridview 
with 16000+ rows.

Thanks in advance!

Jesús

Benoit Minisini escribió:

> 
> You must do exactly what is written in the documentation: instead of setting 
> the data explicitely, you must implement the Data event handler. In this 
> event handler, you will receive the Row and Column of the cell to fill, and 
> in return you set the properties of the GridView.Data property to define the 
> cell contents.
> 
> PUBLIC SUB MyGridView_Data(Row AS Integer, Column AS Integer)
> 
>   MyGridView.Data.Text = Row & " : " & Column
> 
> END
> 





More information about the User mailing list