B4A Code Snippet [B4X] B4XTable - Resize columns based on content - Erel    
Apr 1, 2020   
(8 reactions)   
tags: xuiTable, b4xtable B4XTable1_DataUpdated
Dim ShouldRefresh As Boolean
'NameColumn and NumberColumn are global B4XTableColumns that we want to measure
For Each column As B4XTableColumn In Array(NameColumn, NumberColumn...
link:
If you can post the B4XPagesproject and tell me what you type, I will be glad to tes it for...
link:
But another peculiar problem I am facing..
If you can post the B4XPagesproject and tell me what...
link:
Your B4XTable1_DataUpdated sub is resizing the column every time it is updating and interfering...
B4J Code Snippet B4XTable Column Resizing... (works for me) - Magma    
Jul 8, 2022   
(6 reactions) go back...
(no b4xtable scrollbar event to check, a fix you can do is using timer and call every... B4X too.. Please share your code too... to make b4xtable stronger !
Credits to: Erel, LucaMs, Mahares...
link:
Dim cc1 As B4XTableColumn=B4XTable1.visibleColumns.Get(pane1.tag)
'lets...
link:
P/S: I thought to change the mouse cursor using
pane1.As(Pane).MouseCursor = fx.Cursors.H_RESIZE...
link: On release i know that works... ;) worked from first time.. but at the debug, is very strange... i w...
B4J Question B4XTable resizable columns - yiankos1    
Oct 3, 2019Hello team,
I would like to know how columns can be resizable?
Thank you for your time...
link: resize them....
Wish [B4X] Resize B4XTable columns based on content, title included - LucaMs    
Jan 2, 2024   
(1 reaction)With reference to the following snippet:
B4XTable - Resize columns based on content
I wanted... with the following Sub:
Public Sub XTableDataUpdated(XTable As B4XTable, TitleIncluded As Boolean)
Dim...
Obviously you should call it from the DataUpdated event of the B4XTable:
Private Sub...
link:
Obviously you should call it from the DataUpdated event of the B4XTable:
You are on a mission...
link: = B4XTable1.GetRow(RowId).Get(column.Id)
MaxWidth = Max(MaxWidth, cvs.MeasureText(txt, lbl.Font).Width...
Wish B4XTable user resizable columns - aeric    
Mar 21, 2022   
(1 reaction)I wish this is possible one day.
https://www.b4x.com/android/forum/threads/b4xtable-resizable-columns.110154/
and if possible double click the divider to auto resize to fit the content like excel...
link:
check here:
https://www.b4x.com/android/forum/threads/b4xtable-column-resizing-not-fully-working...
link:
I wish this is possible one day.
https://www.b4x.com/android/forum/threads/b4xtable-resizable...
link: +1...
B4J Question B4XTable not resize when search - yiankos1    
Oct 13, 2019Hello team,
I user B4XTable and i use Erel's code to resize columns based on content. When i use search to find something, if a cell has been resized and corresponds to search terms, whole colum...
link: this out
Dim ShouldRefresh As Boolean
'NameColumn and NumberColumn are global B4XTableColumns...
link: You are making an assumption that is not always be correct.
id is 0 for empty rows. If there aren...
link: Test this code:
Sub B4XTable1_DataUpdated
Dim ShouldRefresh As Boolean
For Each column...
B4i Question B4xtable: resize according to the width of the screen - Alexander Stolte (first post)    
Nov 5, 2023   
(2 reactions)
%x
dont use %x or %y outside the designer.
Erel said you can also use it in the resize event, but never outside....
link: Hello, I have a code in B4a which allows you to resize the columns of a table according to...
B4A Library [B4X] B4XTable - Cross platform, sortable, searchable, customizable table - Erel    
Sep 21, 2025   
(59 reactions)   
tags: xuiTable, b4xtable, DataGrid, Table, B4X B4XTableB4XTable is a paged based table. The UI is made of a horizontal xCLV. The data is stored in an in... use?
1. Add a B4XTable with the designer.
2. Add the columns:
B4XTable1.AddColumn("US County...(ColumnId)
Log(cell)
End Sub
B4XTable.GetRow returns a Map with the row data. The row values are mapped to the columns ids.
Tip: You can access the visible row ids with B4XTable.VisibleRowIds.
Customization
Many things can be customized. Will start with a few simple things.
B4XTable.AddColumn...
B4J Question B4XTable - Problem with Resize Screen - Bossolo (first post)    
Oct 11, 2020, if that is so you can use the mainform.rootpane resize event. (if you are in the mainform of course)
if my memory doesnt fail it is this one:
private Sub mainform_Resize (Width As Double, Height...
link: , if that is so you can use the mainform.rootpane resize event. (if you are in the mainform of course...
link: Hello everyone,
i have a form with a B4XTable, when i start the program the tablet it's fine...
B4J Question B4xTable - checkbox - problem with resizing - DarkoT (first post)    
Aug 23, 2022
p.GetView(1) returns the panel that holds the layout.
Dim pnl As B4XView = p.GetView(1)
Dim chk As B4XView = pnl.GetView(0)
Thank you.. Works perfect... Thank's for help......
link: p.GetView(1) returns the panel that holds the layout.
Dim pnl As B4XView = p.GetView(1)
Dim chk...
link: (i)
If RowId > 0 Then
Dim p As B4XView = colNonActive.CellsLayouts.Get...
link: Example is attached.
132854...
Page: 1  
2  
3  
4  
5  
6  
7