Click here to Skip to main content
15,913,758 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi i am merging two data set in a data gird.
it works fine.
now i want result in order by clause.
how to do this ?????
In data grid one column is start date.
i want result in order by start date.

i am using this-

C#
objDt1.Merge(objDt);


Thanks in Advance...
Posted
Updated 30-Mar-12 0:26am
v4

C#
objDt1.Merge(objDt);
DataView dv = objDt1.Tables[0].DefaultView;
dv.Sort = "startdate desc";
DataTable dt = dv.Table;
dgTimeSheet.DataSource = dt;
dgTimeSheet.DataBind();
 
Share this answer
 
Hi ,

Check This Out

Merge two dataset[^]

Hope This May Help You...
 
Share this answer
 
Find following code for the same.

C#
targetDataset.Merge(sourceDataset, true);


Hope this help!
 
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