Newsgrupos.com  

Retroceder   Newsgrupos.com > Forum > Newsgroup es.comp.lenguajes.* Foro > Newsgroup es.comp.lenguajes.visual-basic
Registrarse Preguntas Frecuentes Lista de Foreros Calendario Buscar Temas de Hoy Marcar Foros Como Leídos




Respuesta
 
LinkBack Herramientas Desplegado
  #1 (permalink)  
Antiguo 19-08-2005, 17:33:23
Pool
 
Mensajes: n/a
Predeterminado 2 ENCABEZADOS EN UN MSFLEXGRID - UNA DUDA MÁS

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.

Responder Con Cita
Alt Today
Advertising
Google Adsense
 
This advertising will not be shown
in this way to registered members.
Register your free account today
and become a member on
Newsgrupos.com
Standard Sponsored Links

Respuesta


Herramientas
Desplegado

Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Trackbacks are habilitado
Pingbacks are habilitado
Refbacks are habilitado


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





Powered by: vBulletin, Versión 3.6.8
Derechos de Autor ©2000 - 2008, Jelsoft Enterprises Ltd.

LinkBacks Enabled by vBSEO 3.1.0 © 2007, Crawlability, Inc.