how can i bind my report/report Viewer to a datagrid view with the Data source as that of the report dataset? ive created an ID card design in a Report. I bind all textbox in the report in my database fields(Data set). but when i run the program, the reportViewer only displays the data from the first rowof my database. Now, I want to bind my report to a datagrid so i can control which row i am going to display in the reportViewer.
i have search the internet so far this is what i found; <pre lang="C#"><pre> DataTable dtRep = ((DataTable)dgv.DataSource).Clone(); foreach (DataGridViewRow row in dgv.SelectedRows) { dtRep.ImportRow(((DataTable)dgv.DataSource).Rows[row.Index]); } dtRep.AcceptChanges();
but this doesn't work in wpf can some one help me with a code that could help me accomplish this? (thanks)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)