[Gambas-user] Huge data in gridview documentation wiki does not explain how

Fabien Bodard gambas.fr at ...626...
Tue May 16 22:52:15 CEST 2017


Well have you a better exemple.


First
MyGridView.Columns.Count = 1
hResult = DB.Exec.....

MyGridView.Rows.Count = hResult.Count


then

Public sub MyGridView_Data(Row as integer, Column as Integer)

hResult.MoveTo(Row)

Select case Column
Case 0
  Last.Data.Text = hResult!Name
end Select

end





2017-05-16 22:44 GMT+02:00 PICCORO McKAY Lenz <mckaygerhard at ...626...>:
> In gambas wiki documentation said:
>
> You can fill the grid explicitly, or implement the Data
> <http://gambaswiki.org/wiki/comp/gb.qt4/gridview/.data> event to display
> the grid contents on demand.
>
> You should use the last method if you have a lot of rows to display. The
> control can handle millions of lines gracefully.
>
> but i try to set gridview.data event and set GridView1*.*Data*.*Text but
> when comes the object said it null (Data) ...
>
> its there any example to load? i have a CSV and also a table db.. please
> its the documentation wrong?
>
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user



-- 
Fabien Bodard




More information about the User mailing list