+ 1

Can you please help me with this it related to report viewer

Can you please help me with this it related to report viewer https://youtu.be/LWHJXZCPGhc

14th Mar 2019, 8:13 AM
Mohammed Kedir
Mohammed Kedir - avatar
2 Réponses
+ 1
So the problem is. Reportviewer did not take the information of the selected row in the datagrid to make the report ? Can you show us some code ?
14th Mar 2019, 8:42 PM
sneeze
sneeze - avatar
+ 1
Create a second table, pass the selected row in this table and assign this table to the report. https://www.aspforums.net/Threads/166903/Display-selected-DataGridView-row-in-RDLC-report-using-C-and-VBNet-in-Windows-Forms-Application/ or try this one. Remove First for Fields I think you get all the records then, but it is word a try. Or a good inspiration for another solution =First(Fields!columnname.Value) remove First() in expression like below : =Fields!columnname.Value https://forums.asp.net/t/2051242.aspx?ReportViewer+shows+only+first+record third option Give the index when assigning the datasource Form2.ReportViewer1.LocalReport.DataSources.Item(0).Value = dtReport https://www.daniweb.com/programming/software-development/threads/455161/how-to-get-current-selected-row-in-datagridview-and-print-using-crystal-rep Hope this helps.
14th Mar 2019, 9:04 PM
sneeze
sneeze - avatar