Webview tables

Ricky D

Well-Known Member
Licensed User
Longtime User
I use webviews to display table data.

I'd like to be able to make the column headers stay
at the top of the webview when I scroll the table.

I assume it needs css or html but I don't know much about them.

Does anyone know how to do this?

Regards, Ricky
 

barx

Well-Known Member
Licensed User
Longtime User
Not sure if the webview supports this but search web for the css command position: fixed.

If not an alternative would be to use a set of labels at top of webview to display header info. Or a scond webview.

Sent from my HTC Desire Z
 
Upvote 0

Ricky D

Well-Known Member
Licensed User
Longtime User
I thought about using labels but I'd need to scroll them horizontally when I do it to the webview and I don't know how to implement it. Not to mention that the webview columns automatically adjust their width.

Regards, Ricky
 
Upvote 0

mc73

Well-Known Member
Licensed User
Longtime User
There are some coding examples on the Net, if you search for 'html fixed table header', still, what I usually do in large tables, is to repeat their headers every some fixed number of rows,with a bold and some other color formatting, in order that the user to always see the column names, without me having to worry about setting the first row fixed. Just a thought.
 
Upvote 0
Top