mostrar celdas deseadas en datagridview
Publicado por JOSE ANGEL (13 intervenciones) el 04/09/2019 19:41:46
HOLA BUEN DIA, OIGAN NECESITO QUE ME ORIENTEN,
CONSEGUI COMO IMPORTAR DATOS DE UNA HOJA DE EXCEL CON LA SIGUIENTE:
MI PETICION ES COMO PUEDO HACERLE PARA QUE SOLO ME MUESTRE LAS CELDAS IMPORTANTES

CONSEGUI COMO IMPORTAR DATOS DE UNA HOJA DE EXCEL CON LA SIGUIENTE:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Dim cadenaConexion As String =
"Provider=Microsoft.ACE.OLEDB.12.0;" &
"Data Source=C:\Users\jhipolitom\Downloads\PROGHOY.xlsx;" &
"Extended Properties='Excel 12.0 Xml;HDR= No'"
Using cnn As New OleDbConnection(cadenaConexion)
Dim cmd As OleDbCommand = cnn.CreateCommand()
cmd.CommandText = "SELECT * FROM [programaDecorado30_08_2019 (1)$] "
Dim da As New OleDbDataAdapter(cmd)
Dim dt As New DataTable()
da.Fill(dt)
DGVPROGRAMA.DataSource = dt
End Using
MI PETICION ES COMO PUEDO HACERLE PARA QUE SOLO ME MUESTRE LAS CELDAS IMPORTANTES

Valora esta pregunta


0