Click here to Skip to main content
15,890,579 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

On merging I get data display from 1st ds after it's finished then data is displaying from 2nd ds.
It does not start from 1st page itself.

I need the result like this eg.
ds1 ds2
sno name class group
1 a 1 red


but it shows like this eg.
ds1 ds2
sno name class group
1 a 1


10 k 3
-ds1 last rec
11 red


Ds1 is holding grid 1 and ds2 is bound with grid2.
In crystal report as told to merge, I merged, but it shows ds1 first then after last record it continues with 2nd dataset data.

I am calling the session values which holding the data from grid

Dim ds As DataSet = DirectCast(Session("datasource"), DataSet)
Dim ds1 As DataSet = DirectCast(Session("datasource1"), DataSet)

ds.Merge(ds1)
Report1.SetDataSource(ds)

Here also it shows the same in ds.
Ds first then continuing with ds1

Please suggest. Thanks in adv for your replies.
Posted
Updated 2-Dec-10 21:46pm
v2
Comments
Dalek Dave 3-Dec-10 3:47am    
Edited for Grammar, Spelling, Syntax and Readability.

Try to Merge the DataTables In Datasets.,
instead of Merging DataSets..
 
Share this answer
 
Comments
Dalek Dave 3-Dec-10 3:47am    
Here is Wisdom!
any link or sample code to merge the datatables pls to show in cry.rpt simultaneously the data from 1st page itself
dataset1 dataset2
1 123 a red 456 part1
2 345 b blue 123 part 2
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900