Foros del Web » Programación para mayores de 30 ;) » .NET »

Ocultar columna

Estas en el tema de Ocultar columna en el foro de .NET en Foros del Web. Cita: Private Sub muestradato_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles muestradato.CellClick rut = muestradato.Rows(e.RowIndex).Cells(0).Value nom = muestradato.Rows(e.RowIndex).Cells(1).Value ape = muestradato.Rows(e.RowIndex).Cells(2).Value esp = muestradato.Rows(e.RowIndex).Cells(3).Value ...
  #1 (permalink)  
Antiguo 11/05/2010, 17:35
 
Fecha de Ingreso: mayo-2010
Mensajes: 5
Antigüedad: 13 años, 11 meses
Puntos: 0
Ocultar columna

Cita:
Private Sub muestradato_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles muestradato.CellClick
rut = muestradato.Rows(e.RowIndex).Cells(0).Value
nom = muestradato.Rows(e.RowIndex).Cells(1).Value
ape = muestradato.Rows(e.RowIndex).Cells(2).Value
esp = muestradato.Rows(e.RowIndex).Cells(3).Value
area = muestradato.Rows(e.RowIndex).Cells(4).Value
est = muestradato.Rows(e.RowIndex).Cells(5).Value
tipo = muestradato.Rows(e.RowIndex).Cells(6).Value
usu = muestradato.Rows(e.RowIndex).Cells(7).Value
con = muestradato.Rows(e.RowIndex).Cells(8).Value
es parte del codigo, quisiera que el ultimo campo con que es distintivo de contraseña no me lo muestre en el gridview

Ojala me ayuden grax
  #2 (permalink)  
Antiguo 11/05/2010, 18:07
 
Fecha de Ingreso: mayo-2010
Mensajes: 5
Antigüedad: 13 años, 11 meses
Puntos: 0
Respuesta: Ocultar columna

Private Sub muestradato_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles muestradato.CellClick
rut = muestradato.Rows(e.RowIndex).Cells(0).Value
nom = muestradato.Rows(e.RowIndex).Cells(1).Value
ape = muestradato.Rows(e.RowIndex).Cells(2).Value
esp = muestradato.Rows(e.RowIndex).Cells(3).Value
area = muestradato.Rows(e.RowIndex).Cells(4).Value
est = muestradato.Rows(e.RowIndex).Cells(5).Value
tipo = muestradato.Rows(e.RowIndex).Cells(6).Value
usu = muestradato.Rows(e.RowIndex).Cells(7).Value
Cita:
con = muestradato.Rows(e.RowIndex).Cells(8).Visible = False
esto deberia ocultarlo?? si es asi no lo hace, opciones acepto acotaciones

fila = e.RowIndex

End Sub

Etiquetas: columna
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 15:38.