B4A Library Grid/Table and ListView Library

qsrtech

Active Member
Licensed User
Longtime User
Yea I think it would be nice to have each row have an object property to store data. Even one for each column might be usefull.
 

stefanobusetto

Active Member
Licensed User
Longtime User
The grid has been designed mainly to show and select data.
It is also correct you can use hidden columns to store string data.
But a tag field could be useful too.
I'll add the request to the wishlist.
 

stefanobusetto

Active Member
Licensed User
Longtime User
yes
you can open the cursor
loop the records
fill an array or a map with
the data of each record
adding the hidden data
then adding the map or the array
to the grid
 

aviario

Active Member
Licensed User
Longtime User
Hello Stafano, when you can have if you tell me why does not the grid is set GridCreate2 (True)

thanks
 

aviario

Active Member
Licensed User
Longtime User
Hi, When I put two grid in a tabhost shows me the first, but the second if I put cgrid1.GridCreate2 (True) shows nothing

checked it with version 2.5 works ok
 

Attachments

  • TabGrid.zip
    2.5 KB · Views: 164

jrat

Member
Licensed User
Longtime User
After i use gg.RowsDelete() the grid not update view. its freeze at preview state. In Log i sow the select and long select procedures return new values, but screen picture of greed not any changes.

I got it! after RowsDelete() necessary use gg.GridCreate( ) ?
 
Last edited:

stefanobusetto

Active Member
Licensed User
Longtime User
fixed ( version 2.10 )
thanks for bug reporting
 

stefanobusetto

Active Member
Licensed User
Longtime User
there is a bug in the grid i'm trying to solve
this should work
B4X:
GridCreate2 (True)
DoEvens
 

aviario

Active Member
Licensed User
Longtime User
IF you take the code from the example really does not work with the DoEvents

thanks
 

Attachments

  • TabGrid.zip
    473 KB · Views: 161

stefanobusetto

Active Member
Licensed User
Longtime User
yes it is but
i don't think double click is a good practice
on android devices
i'll have a look at the google best practices guidelines
 

aviario

Active Member
Licensed User
Longtime User
Hello stefanobusetto, when you can fix the bug GridCreate2 (True)

thanks
 

stefanobusetto

Active Member
Licensed User
Longtime User
posted version 2.22
fixed the bug GridCreate2 (True)


here attached another grid sample app
 

Attachments

  • xnGridSample3.zip
    1.7 KB · Views: 172
  • xnGridSample3.png
    64.4 KB · Views: 212

Descartex

Well-Known Member
Licensed User
Longtime User
Hi,
I'm trying to combine this component with SlidingPanels.
I´ve 3 panes with 3 xngrids that shows status tables from different leagues/divisions. I can't found an event in the xngrid that triggers when the user scrolls horizontally in order to change the panel and show the next one.
Is there any solution for this???
Thanks a lot
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…