Visual Basic - TITULOS COLUMNAS MSFLEX

Life is soft - evento anual de software empresarial
 
Vista:

TITULOS COLUMNAS MSFLEX

Publicado por HILARIO (100 intervenciones) el 20/08/2004 17:10:19
QUISIERA SABER COMO PUEDO CAMBIAR LOS TITULOS DE LAS COLUMNAS EN UNA MSFLEXGRID.

GRACIAS
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:TITULOS COLUMNAS MSFLEX

Publicado por miguel (1042 intervenciones) el 20/08/2004 17:33:00
En tiempo de ejecución puede hacer esto:
Private Sub Form_Load()
With MSFlexGrid
.Rows = 10
.Cols = 5
.ColWidth(0) = 1200
.ColWidth(1) = 1200
.ColWidth(2) = 1200
.ColWidth(3) = 1200
.ColWidth(4) = 1200
.TextMatrix(0, 0) = "Encabezado 1"
.TextMatrix(0, 1) = "Encabezado 2"
.TextMatrix(0, 2) = "Encabezado 3"
.TextMatrix(0, 3) = "Encabezado 4"
.TextMatrix(0, 4) = "Encabezado 5"
End With
End Sub
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:TITULOS COLUMNAS MSFLEX

Publicado por jose luis gomez (2 intervenciones) el 02/09/2004 03:20:03
en tiempo de ejecucion el grid tiene una propiedad que se lala formatstring
le pones ejemplo:
m1.formatsrting="y los nobres que quieras separados por un caracter especial"
y es todo asi te evitas de escribir tanto codigo y puedes usar el grid con diferentes emcabezados para otros reportes, checalo si funicona
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar