Ver Mensaje Individual
  #4 (permalink)  
Antiguo 14/02/2011, 09:47
Oscar_Santander
 
Fecha de Ingreso: enero-2011
Ubicación: La Serena
Mensajes: 28
Antigüedad: 13 años, 3 meses
Puntos: 0
Respuesta: como pasar todo el contenido datagreedview a una variable

es muy larga ya que no se como llenar el datagreedview con una sola consulta queria hacerlo asi
Código vb:
Ver original
  1. Dim mosene As New OleDb.OleDbDataAdapter("select DISTINCT (d.CodigoPrestacion) as Código, p.NOMBRE_PRESTACION as Prestación, p.REM_PRESTACION as Rem, p.SECCION as Sección, d.Col01 as Enero from DatosSerieA d, PRESTACIONES p where d.CodigoPrestacion=p.CODIGO_PRESTACION and d.IdEstablecimiento='" & Me.Label7.Text & "' and d.Mes=1 and Ano=" & Me.ComboBox2.Text & "", conectar)
  2.             Dim datos As New DataSet
  3.             mosene.Fill(datos)
  4.             Me.DataGridView1.DataSource = datos.Tables(0)
pero no se como agrupar todos los meses en esa consulta :(