wish: GridView

vangogh

Active Member
Licensed User
Longtime User
I really would like to have a "real" GridView...

yes, I know, it can be done using code...

http://www.b4x.com/forum/basic4andr...ine-tableview-using-scrollview.html#post43614

... but if in a single activity I need to put 2 or 3 grids ("tables"), using only code become a mess :sign0137:

I really would like to have a "gridview" with properties&events embedded

like
myGrid.RowHeight(Row as int)
myGrid.ColWidth(Col as int)
myGrid.CellText(Col as int, Row as int)
myGrid.CellBackColor...

sub myGrid_CellClick...

so that I add a grid (or I initialize a grid), and the code will be sooooo clean...

I need to use 3 grids in a activity, and now I am using a ListView... :sign0148: hard life...
 

vangogh

Active Member
Licensed User
Longtime User
so what is the ideal solution?
:sign0085:

I need a way to manage many columns of different width, and the rows can be of different height (I use thin colored "separator row" between some kind of rows)

thank you
 
Last edited:

gevitasler

New Member
Licensed User
Longtime User
Hi,

I miss a GridView too! I know the example with ScrollView/Labels. Yes, I can customize it. But I fear, tables with 20-30 Columns and hundreds of rows costs too many ressources. I'll try it.

HTML-Table is ok for showing or modifing existing data by clicking a link. But inserting new data is not ok, because the HTML-Table must by permanently new created on new records!

As Tabs would reach now the offices more and more, Database-Applications are now possible/expected. Those Apps need Grids! So, please, think about it

BTW: b4a is a great tool!
 

warwound

Expert
Licensed User
Longtime User
HTML-Table is ok for showing or modifing existing data by clicking a link. But inserting new data is not ok, because the HTML-Table must by permanently new created on new records!

That's not quite true - with a little javascript you can dynamically change just about any element of a webpage.

Adding, removing or inserting table rows to an existing table is straightforward.

https://developer.mozilla.org/en/traversing_an_html_table_with_javascript_and_dom_interfaces

Martin.
 

Alex_197

Well-Known Member
Licensed User
Longtime User

What we really need is the same or similar controls as we have MS Visual Studio. You can drop it, bind it to the data source and done.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…