[Gambas-user] GridView not refreshing

Benoît Minisini gambas at ...1...
Thu Feb 5 15:04:47 CET 2009


> > Clear method to void it, or you use the Data event, and then you must
> > provide
> > the data when the GridView asks for it.
>
> This is my problem. How shall be the the gV_Data() event invoken, if not
> explicitelly?
> How can GridView ask for it?
> There are only two options to fill the  grid:
> 1. With gV[x,y].Text=... this is slow
> 2. Or to pass the values  with gV_Data(x,y) and a global variable one by
> one.
>
> The 2. way is how I've filled my table 80.000 x 5 in 30 seconds. Each time
> I require the search, the program fills the table using the same procedure.
> Now, when I'm clicking on a column's header and invoke a function
> ColumnSort(), it does the sort of arrays containing the data to be
> displayed, and it is trying to invoke the gV_Data(). Where  am I wrong?
> I don't understand what should an user do with the grid to invoke the Data
> event. Am I clear?

If you have changed the data, by sorting it or for any other reason, you just 
have to call the GridView.Refresh() to refresh the entire GridView, or 
GridView[x, y].Refresh to refresh a specific cell.

Regards,

-- 
Benoît




More information about the User mailing list