[Gambas-user] Problem with columnview control

Werner wdahn at ...1000...
Tue Jun 3 16:11:31 CEST 2008


homer01 wrote:
> Hi
>
> I've problem to fill a columnview control.
>
> I've set the column's number to 3.
> I then add an item, but I can't add text in the second and third column.
>
> Here is my code
>
> clwList.Columns[3]
> clwList.Add["0001","1"]
>
> here is the line that won't work
> clwList.Item["0001"][1].Text = "toto"
> I've tried with
> clwList.Item["0001",1].Text = "toto"
>
> I've put this code in Form_Open sub, or in the Form_Resize sub
> But every time I run the programm I get the message : Null Object
>
> If someone can shade some light on this.
> Thanks for your help.
>
>   
Here is a simple columnview demo. Hope it helps.

Regards
Werner

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cvwDemo.tar.gz
Type: application/x-gzip
Size: 11984 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20080603/53f56f07/attachment.bin>


More information about the User mailing list