I can post a single line of row I selected from datagridview but I want to select specific multiple rows then display it in my crystal report. BTW I'm using VB2010.
Dim cmd As New OleDbCommand("Select * From Data1 Where ID = " & Form4.DataGridView1.SelectedRows(0).Cells(0).Value.ToString() & "", Form4.con)
Dim adpt As New OleDbDataAdapter(cmd)
Dim DtSet As New DataSet
Form4.con.Open()
adpt.Fill(DtSet, "Data1")
Dim crystal As New CrystalReport1
crystal.SetDataSource(DtSet.Tables("Data1"))
CrystalReportViewer1.ReportSource = crystal
CrystalReportViewer1.Refresh()
Form4.con.Close()