Microsoft
Software
Hardware
Network
Question : Datagridview values passing to Reportviewer in a winform application vb.net
I am using a data grid bound to my customers table in sql.
When i select a single record in the datagridview and send the id to my report viewer it runs ok.
If i select multiple rows I do not get any results returned even though i have a IN clause on my SQL statement
Further investigation shows that the value I am trying to pass is enclosed in quotation marks. e.g "Value1,value2" instead of what i want "Value1","value2" etc...
I have tried various split(string) without any luck.
Any help appreciated
Martin
Answer : Datagridview values passing to Reportviewer in a winform application vb.net
Why don't you fill the Dataset of the report directly with the Query and the string that you get from the selected rows, refresh the dataset then and pull the report later?
Random Solutions
How do I mount a partition in deft linux?
vlan isolation - need to keep a vlan from seeing network
Hyper-V P2V VM Continuous Blue Screen
Juniper Network Connect won't reconnect after forced logout
Email is being received but cannot send out
OS X Server 10.5 and OS X Laptops Joining accounts to Open Directory?
Adobe - monitor profile [..] appears to be defective. Please rerun your monitor calibration software
WRT54G2 Linksys router - reset password saving actual configuration
How can I dynamically switch web service addresses in .NET without a recompile?
Net Use returns "System error 64 has occurred. The specified network name is no longer available."