Quisiera saber cómo modificar, en tiempo de ejecución, el tamaño de las columnas de un control GRID ( VER PASO [ 03 ] ).
//-[ 01 ] Vacío el contenido del control ------------------------------------------------
oWndConsultas.oGridResultados.DeleteAllItems
//-[ 02 ] Modifico el contenido de los encabezados ----------------------------------
For nCampo:=1 To Len(aEncabezados)
oWndConsultas.oGridResultados.Caption(nCampo) := aEncabezados[nCampo]
Next
//-[ 03 ] Modifico los anchos de las columnas ----------------------------------------
oWndConsultas.oGridResultados.

//-[ 04 ] Ingreso los nuevos registros --------------------------------------------------
For nRegistro:=1 To Len(aRegistros)
oWndConsultas.oGridResultados.AddItem(aClone(aRegistros[nRegistro]))
Next
//-[ 05 ] Actualizo la interfaz del control ----------------------------------------------
oWndConsultas.oGridResultados.Refresh()
Saludos !!
GOOGLE TRANSLATION
Hello everybody!
I would like to know how to modify, at runtime, the size of columns in a grid control (see step [03]).
/ / - [01] Empty the contents of the control --------------------------------------- ---------
oWndConsultas.oGridResultados.DeleteAllItems
/ / - [02] alters the content of headers ----------------------------------
For nCampo: = 1 To Len (aEncabezados)
oWndConsultas.oGridResultados.Caption (nCampo): = aEncabezados [nCampo]
Next
/ / - [03] modifies the widths of the columns -------------------------------------- --
oWndConsultas.oGridResultados. ::: = AClone (aAnchos)
/ / - [04] Entering new records ---------------------------------------- ----------
For nRegistro: = 1 To Len (aRegistros)
oWndConsultas.oGridResultados.AddItem (aClone (aRegistros [nRegistro]))
Next
/ / - [05] Updated control interface --------------------------------------- -------
oWndConsultas.oGridResultados.Refresh ()
Greetings!