[Gambas-user] Table view questions

Benoit Minisini gambas at ...1...
Thu Sep 9 11:04:06 CEST 2004


On Thursday 09 September 2004 10:52, Eilert wrote:
> Hi Jack, hi Benoit,
>
> I looked at the DataReport Example and I think I did everything as
> suggested. My TableView was called tb:
>
>    tb.Rows.Count = 3
>    tb.Columns.Count = 5
>
>    tb.Columns[0].Text = "One"
>    tb.Columns[1].Text = "Two"
>
>    tb.Rows[1].Text = "Three"
>
>    tb.Column=1
>    tb.Row=1
>
>    tb.Data.Text = "hello"
>
>    tb.MoveTo(2,2)
>    tb.Data.Background = 3
>
> As you can see, I tried everything using Column/Row and MoveTo, but no
> text appears in the cells and the cell doesn't change colour either.
>
> So, what am I doing wrong?
>
> Rolf
>

The TableView control does not memorize any data. You must provide the data 
yourself in the Data event, each time it is raised.

Read the example again more carefully :-)

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the User mailing list