<div dir="ltr"><div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">Il giorno lun 19 nov 2018 alle ore 10:48 Gianluigi <<a href="mailto:bagonergi@gmail.com">bagonergi@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">Il giorno dom 18 nov 2018 alle ore 10:15 Gianluigi <<a href="mailto:bagonergi@gmail.com" target="_blank">bagonergi@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">It's been more than four days that I try to make the dragging of GridView scrollbar more linear, but I have not succeeded.<br>I try to explain what I would like to get:<br>I need to load millions of records into the grid and so far so good, I load the grid with 50000 records step by step with SELECT LIMIT and with the help of a vector.<br>If I scroll the grid with the mouse wheel or with the arrow keys on the scrollbar, everything good working.<br>Unfortunately, the scroll bar slider every time I reload the 50000 new records jumps up preventing proper dragging with the mouse.<br>I tried to form the complete grid, but I can not load it with the step by step (I always get 'out of bound' error).<br><br>I enclose a demonstration project that, when opening it,  create  a SQLite database in User.Home &/ Application.Name and loads a table (user) with 600000 records, you need to be patient when you first open it.<br>Any help is appreciated</div><div dir="ltr"><br></div><div>Regards</div><div>Gianluigi<br></div></div></blockquote><div><br></div><div>I have an idea, it is likely that _Data event uses "LIMIT" within it.<br>In this case the problem is the vector.<br>Now I am engaged in another job but as soon as I have time I will verify.<br></div><div><br></div><div>Regards</div><div>Gianluigi<br></div></div></div></div></blockquote><div><br></div><div>In fact the GridView Data event does all the work and it is not necessary to split the records with LIMIT.<br>I published an example on the Farm (DBSpeedyTest).<br>I read on the wiki [0] this:<br>GridView1.Data.text = Str($res[GridView1.Columns[column].text])<br>which I think is wrong, if you agree I would change it with:<br>GridView1.Data.Text = $res[Str(Column)]<br>I would like a reply.<br>Regards<br>Gianluigi<br><br>[0] <a href="http://gambaswiki.org/wiki/howto/databasesqlite">http://gambaswiki.org/wiki/howto/databasesqlite</a> <br></div></div></div></div>