transfer a table to another form
Posted
Guru

Examine the following code it shows you the 2 ways to fill a gridview.
I use Dir() on the home folder then add the directories to $aDirList string array for use with the GridView1_Data() event.
But the file list i add directly/manually to the GridView2
You must use one way or the other, you cannot fill a gridview manually AND use the data event.
Code (gambas)
- ' Gambas class file
- GridView1.AddColumn("Dirs")
- GridView2.AddColumn("Files")
- ' add to the array for later use in the GridView1_Data event.
- $aDirList.Add(sItem)
- ' manually add files to GridView2 as there is no data event.
- GridView1.Rows.Count = $aDirList.Count ' This is all we must set to use the GridView1_Data event
- GridView1.Data.Text = $aDirList[Row]
I hope that makes more sense for you.
Posted
Trainee
BruceSteers said
Let me explain better when i say it is one or the other.
Examine the following code it shows you the 2 ways to fill a gridview.
I use Dir() on the home folder then add the directories to $aDirList string array for use with the GridView1_Data() event.
But the file list i add directly/manually to the GridView2
You must use one way or the other, you cannot fill a gridview manually AND use the data event.
finally, I arrived at my result, although I constantly modified it, it didn't work, until I saw that the name of the procedure was incorrect!!!
Thank you all for your patience, now I know how to use a gridview…
Posted
Guru

lucien91 said
BruceSteers said
Hopefully we can still help
thank you, admit that it's frustrating for a French person to be forced to translate forums and texts when gambas was invented by a French person!
I thought there was not a French forum anymore but then i found this..
Le site de la communauté de Gambas - Gambas France
And this page looks like it may have many examples you may be interested in.
Le site de la communauté de Gambas - Gambas France
Home: Le site de la communauté de Gambas - Gambas France
Not trying to get rid of you but i thought you may find that forum good for your language
1 guest and 0 members have just viewed this.



