wpf - Pass data from datagrid to reportviewer dataset -
i have app in c# wpf existing .rdlc file added reportviewer. report has datasets. here printscreen: link. now, have datagrid that's bound observablecollection. how can pass data collection fields of dataset? parts of items of observablecollection have same type fields of datasets have different names. want user able select single row datagrid , records of row (parts of item of observablecollection) fill appropriate fields of dataset showing populated report in reportviewer. , whenever user selects different row, data in report should change accordingly. hope i've been clear. i've read ienumerable , list<t> set datasource don't that. want overwrite fields of dataset if parts of structure or class , present them in formatted report. can done in similar, simple way? because don't know why want take item observablecollection , make list<> out of it. in case chose option should items of list<> have same name , type fields in dataset?
thank answer in advance!
Comments
Post a Comment