jcfans 0 Light Poster

how to add gridview data to dataTable and display at crystal report?
for example,my gridview show 10 data and i wan show these 10 data to crystal report!

when i add the gridview data to dataset,there occur sum error!

'add column to that table 
        For i As Integer = 0 To grdV.Columns.Count - 1
            ds.Tables(0).Columns.Add(grdV.Columns(i).DataPropertyName)        Next

        'add rows to the table 
        Dim dr1 As DataRow
        For i As Integer = 0 To grdV.Rows.Count - 1           
            dr1 = ds.Tables(0).NewRow
            For j As Integer = 0 To grdV.Columns.Count - 1
                dr1(j) = grdV.Rows(i).Cells(j).FormattedValue
            Next
            ds.Tables(0).Rows.Add(dr1)
        Next

ds.Tables(0).Columns.Add(grdV.Columns(i).DataPropertyName) show "DataPropertyName" is not a member of 'DevExpress.ExtraGrid.Views.BandedGrid.BandedGridColumn'

For i As Integer = 0 To grdV.Rows.Count - 1 show "Rows" is not a memeber of 'DevExpress.ExtraGrid.Views.BandedGrid.BandedGridView'

HELP!!!Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.