Report.RegisterData ( DataView , TabeName )
Stark
Syria
Hi have a good day
I think the Report didn't get the DataView with Filtered Rows
please try this code.
I think the Report didn't get the DataView with Filtered Rows
please try this code.
            DataTable datatable = new DataTable();
            // Add DataTable Columns
            datatable.Columns.Add("ID");
            datatable.Columns.Add("Name");
            datatable.Columns.Add("Age");
            // Add DataTable Row
            datatable.Rows.Add("1", "Stark", "26");
            datatable.Rows.Add("2", "Sonya", "24");
            datatable.Rows.Add("3", "Kabal", "21");
            // Assign DataTable to Grid
            dataGridView1.DataSource = datatable;
            DataView dataview = new DataView(datatable);
            dataview.RowFilter = "ID = 1";
            // This will not work  ( NO Rows will Show )
            report1.RegisterData(dataview, "table1");
            // this Will Work      ( Work as expected )
            report1.RegisterData(dataview.ToTable(), "table1");
            report1.Show();
Comments
I've tested your example. It works well.