• Viernes 3 de Mayo de 2024, 17:31

Autor Tema:  Manipular Msflexgrid  (Leído 1716 veces)

az8

  • Miembro MUY activo
  • ***
  • Mensajes: 111
    • Ver Perfil
Manipular Msflexgrid
« en: Viernes 18 de Febrero de 2005, 22:52 »
0
NECESITO AYUDA URGENTE PARA MANIPULAR UN MSFLEXGRID...

KIERO CAMBIARLE LOS TITULOS A TODAS LAS COLUMNAS, EN LUGAR DE LOS TITULOS DE LOS CAMPOS DE LA TABLA A LA CUAL ME CONECTO, ADEMAS KIERO KE AL HACER DOBLE CLICK EN ALGUN REGISTRO ME MANDE EL DATO KE ESTE CONTENGA,,,, COMO LE HAGO

ESPERO ME AYUDEN

Brroz

  • Miembro de PLATA
  • *****
  • Mensajes: 1058
    • Ver Perfil
Re: Manipular Msflexgrid
« Respuesta #1 en: Sábado 19 de Febrero de 2005, 08:50 »
0
Hola az8

Hasle asín:
Código: Text
  1.  
  2.     With MSFlexGrid1
  3.         .Clear
  4.         .Cols = 11
  5.         .Rows = 11
  6.         .FixedCols = 1
  7.         .FixedRows = 1
  8.     End With
  9.    
  10.     Dim iCol As Integer
  11.     For iCol = 1 To 10
  12.         MSFlexGrid1.TextMatrix(0, iCol) = "Cabecera " & iCol
  13.     Next iCol
  14.    
  15.     Dim iRow As Integer
  16.     For iRow = 1 To 10
  17.         MSFlexGrid1.TextMatrix(iRow, 0) = iRow
  18.         For iCol = 1 To 10
  19.             MSFlexGrid1.TextMatrix(iRow, iCol) = "Fila " & iRow & ",Columna " & iCol
  20.         Next iCol
  21.     Next iRow
  22.  
  23.  

Abur.