18 lines
507 B
VB.net
18 lines
507 B
VB.net
|
'Noe Sanchez
|
||
|
'Noviembre 2005
|
||
|
'CONDORBS
|
||
|
Public Class clOcultarColumna
|
||
|
'clase q permite ocultar columnas de un datagrid
|
||
|
'sin modificar la estructura del dataset
|
||
|
Public Function OcultarColumna(ByVal Nombretabla As String, ByVal NombreColumna As String, ByVal DSx As DataSet)
|
||
|
|
||
|
Try
|
||
|
DSx.Tables(Nombretabla).Columns(NombreColumna).ColumnMapping = MappingType.Hidden
|
||
|
Catch ex As Exception
|
||
|
MessageBox.Show(ex.Message)
|
||
|
End Try
|
||
|
|
||
|
End Function
|
||
|
|
||
|
End Class
|