Dim oDataTable As SAPbouiCOM.DataTable
Dim sSQL As String
oDataTable = oForm.DataSources.DataTables.Item("DT_Servicios")
sSQL = "SCRIPT"
oDataTable.ExecuteQuery(sSQL)
oMatrix.Columns.Item("Col_0").DataBind.Bind("DT_Servicios", "DocNum")
oMatrix.Columns.Item("Col_1").DataBind.Bind("DT_Servicios", "CreateDate")
oMatrix.Columns.Item("Col_2").DataBind.Bind("DT_Servicios", "CustmrName")
oMatrix.Columns.Item("Col_3").DataBind.Bind("DT_Servicios", "Status")
oMatrix.Columns.Item("Col_4").DataBind.Bind("DT_Servicios", "AsignadoA")
oMatrix.Columns.Item("Col_5").DataBind.Bind("DT_Servicios", "U_Creado")
'Cargamos los datos a la Matrix
oMatrix.LoadFromDataSource()
' Ajustamos automáticamente el tamaño de las columnas
oMatrix.AutoResizeColumns()