2017-05-16 16:52 GMT-04:00 Fabien Bodard <gambas...@gmail.com>: > > First > MyGridView.Columns.Count = 1 > hResult = DB.Exec..... > > AHHHH THAT's the problem, THE ODBC row count does not exist, due the MS/sybase ODBC freedts implementaion or gambas i dont know does not retunr any more than "-1"
> MyGridView.Rows.Count = hResult.Count > > so i set this to a fixed knowed (only for test), and then > > 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 > i assume the grid will be filled as the cursor will get down the navigation vertical bar? > > > > > > 2017-05-16 22:44 GMT+02:00 PICCORO McKAY Lenz <mckaygerh...@gmail.com>: > > 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@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard > > ------------------------------------------------------------ > ------------------ > 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@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user