Boletín mugperu Digital - Julio 2009!
  Search 
Monday, May 21, 2012 ..:: Foros de Discusión ::.. Register  Login
Foros MUGPERU Minimize
Subject: ampliar el alto del encabezado de un datagrid
Prev Next
You are not authorized to post a reply.

Author Messages
power_net
Posts:47

10/07/2006 03:35 PM  
Hola chicos:

Bueno en asp.net es sencillo ampliar el alto del encabezado de un datagrid.
Pero ahora estoy trabajando con VB.NET 2003 en una app windows. Y no se la forma como lograr esto. Si alguno de uds. por favor me puede ayudar.

Muchas gracias,
YOJAN
Posts:27

13/06/2007 09:07 AM  
Hola,

No es tan transparente cambiar el alto :( .. Pero usando estas Lineas lo conseguiras:

Imports System.Reflection
Dim headerFontHeightFieldInfo As FieldInfo
headerFontHeightFieldInfo = dgPanelPrincipal.GetType().GetField("headerFontHeight", BindingFlags.NonPublic Or BindingFlags.Instance)

If Not headerFontHeightFieldInfo Is Nothing Then
Dim currentHeight As Integer
currentHeight = headerFontHeightFieldInfo.GetValue(dgPanelPrincipal)
headerFontHeightFieldInfo.SetValue(dgPanelPrincipal, 35)
End If
You are not authorized to post a reply.
Forums > Temas de Interés > Construcción de Aplicaciones Windows Forms > ampliar el alto del encabezado de un datagrid



ActiveForums 3.7
        
Copyright 2001-2012 MUGPERU   Terms Of Use  Privacy Statement