![]() |
| |||||||
| Registrarse | Preguntas Frecuentes | Lista de Foreros | Calendario | Buscar | Temas de Hoy | Marcar Foros Como Leídos |
![]() |
| | LinkBack | Herramientas | Desplegado |
| |||
| Hola foro, me han dado un ejemplo de como poder hacer 2 encabezados en un msflexgrid, el problema es que al darle un click o doble click en la fila 0 o la fila 1, siempre me manda que es la fila 2(MsFlexGrid1.Row), yo quiero bloquear la fila 0 y 1 que son la de los dos 2 encabezados, pero no consigo que me de la fila correspondiente, lo he intentado con el MouseRow que sirve para saber en que fila estas pero ni así. Espero me puedan Ayudar, el codigo lo pongo a continuacion: En un formulario pega una MsFlexGrid, luego pega este codigo en el evento Load del formulario Dim x As Integer MSFlexGrid1.Clear MSFlexGrid1.Redraw = False With MSFlexGrid1 .Rows = 5 .Cols = 6 .FixedRows = 2 .FixedCols = 0 .TextMatrix(0, 0) = "Cantidades" .TextMatrix(0, 1) = "Cantidades" .TextMatrix(0, 2) = "Cantidades" .TextMatrix(0, 3) = "Cantidades" .TextMatrix(0, 4) = "Cantidades" .TextMatrix(0, 5) = "Cantidades" .TextMatrix(1, 0) = "Cant 1" .TextMatrix(1, 1) = "Cant 2" .TextMatrix(1, 2) = "Cant 3" .TextMatrix(1, 3) = "Cant 4" .TextMatrix(1, 4) = "Cant 5" .TextMatrix(1, 5) = "Cant 6" For x = 0 To .Cols - 1 .ColAlignment(x) = flexAlignCenterCenter Next x .MergeCells = flexMergeRestrictRows .MergeRow(0) = True End With MSFlexGrid1.Redraw = True Por ultimo corre el proyecto. |
| | ||||
| ||||
| |
![]() |
| Herramientas | |
| Desplegado | |
| |
Temas Similares | ||||
| Tema | Autor | Foro | Respuestas | Último mensaje |
| msflexgrid | Rodrigo | Newsgroup microsoft.public.es.vb | 9 | 02-09-2008 22:29:05 |
| msflexgrid | Rodrigo | Newsgroup microsoft.public.es.vb | 6 | 02-09-2008 16:34:14 |
| msflexgrid | Rodrigo | Newsgroup microsoft.public.es.vb | 0 | 22-08-2008 19:07:03 |
| msflexgrid | Rodrigo | Newsgroup microsoft.public.es.vb | 1 | 08-07-2008 01:51:16 |
| msflexgrid | Rodrigo | Newsgroup microsoft.public.es.vb | 8 | 12-04-2008 01:49:53 |