B4A Library Grid/Table and ListView Library

aviario

Active Member
Licensed User
Longtime User
I get the same error when I have the grid loaded and change the height of a row

thanks
 

stefanobusetto

Active Member
Licensed User
Longtime User
@magi6162
without db i could suggest to try this
minimal code and upper case field names


B4X:
grdS.Initialize("GS")
    Activity.LoadLayout("Storico")
    Activity.AddMenuItem("Barra di scorrimento","BarraOnOff")

    cursorS = Main.gecoDB.ExecQuery("select STORICO.IDSTORICO as IDSTORICO " & _
                                     "from STORICO " & _
                                     "Order By STORICO.RAGSOC ASC")

    bmpSortUp.Initialize ( File.DirAssets, "Sort-Ascending.ico" )
    bmpSortDown.Initialize ( File.DirAssets, "Sort-Descending.ico" )
    
    cc(0).Initialize2("IDSTORICO","IDSTORICO",0dip,Gravity.CENTER_HORIZONTAL + Gravity.CENTER_VERTICAL)
    grdS.ColAppend(cc(0))

    grdS.CursorAppend(cursorS)
    
    pnlGrd.AddView ( grdS , 0dip , 0dip , 100%x, 100%y)
    grdS.GridCreate
 

stefanobusetto

Active Member
Licensed User
Longtime User
@aviario
I've tested the GridCreate2 method with both true and false param.
I've also tested the PropSetHeight calling it before and after
GridCreate2 but i've not been able to get the errors.
I can suggest to:
1) initialize the grid
2) initialize and add the grid columns
3) fill the grid
4) create the grid
You can then:
a) test if a row exists
b) set the height of the row
I'll be glad to have a look at your code if you post it or send by email.

 

aviario

Active Member
Licensed User
Longtime User

This is an example

thanks
 

Attachments

  • Pruebagrid.zip
    312.1 KB · Views: 162
Last edited:

stefanobusetto

Active Member
Licensed User
Longtime User
Great problem!


I've been able to reproduce it with the code you've posted.
I've also been able to create your grid pasting your code in
my xnGridTest example app.

I'll work on it.
Really strange indeed!
 

Attachments

  • Main.zip
    3.5 KB · Views: 183

stefanobusetto

Active Member
Licensed User
Longtime User
touch the scrollbar at the right side of the grid
keep the finger on the display and move it
up or down
 

stefanobusetto

Active Member
Licensed User
Longtime User
What do you mean? Some columns to the left always visibile when scrolling horizontally?

Try PixelFix = true
for the grid problem
 

stefanobusetto

Active Member
Licensed User
Longtime User
i'll have a look
but i'm quite sure the current
implementation of the grid is quite
incompatible with the desired feature
 

stefanobusetto

Active Member
Licensed User
Longtime User
Yes it is possible.
Can't tell if i'm adding the feature
or when. I'm working on multiline
rows now.
 

aviario

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


thanks
 
Last edited:

aviario

Active Member
Licensed User
Longtime User
Thanks, I checked it with version 2.5 works ok
 

Attachments

  • TabGrid.zip
    2.5 KB · Views: 170

TheMightySwe

Active Member
Licensed User
Longtime User
Tag property on a row?

Do you think it's possible to get a "Tag" property on the rows just to store a data ID or something?

Regards,

Jonas
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…