@Eliel_Francklim
.
Based upon your design, the loading of the data is done when the button on the dialog is pressed.
.
Also do not see where you used DefaultGridDataModel
in the code. Columns still sort.
.
Edit
.
Seeing as there is no response yet, here is the code to fix:
After:
'Criar controle tabela
oTabela = oDialogo.Model.createInstance("com.sun.star.awt.grid.UnoControlGridModel")
with oTabela
.PositionX = 10
.PositionY = 10
.Width = 171
.Height = 85
end with
.
add:
oDataModel = createUnoService("com.sun.star.awt.grid.DefaultGridDataModel")
' Insert data
oDataModel.addRow("1", array(""))
oTabela.GridDataModel = oDataModel
.
After starting the dialog, press your button and your data appears without column sorting ability.