Click here to Skip to main content
15,905,414 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
this is my query

C++
SqlDataAdapter da = new SqlDataAdapter("select LD_LDate as Date, LD_Lno as Particular,LD_DCharge as Credit,LD_Amt as Debit from Loandetails where Loandetails.LD_LDate='" + TB_Datetxt.Text + "' union select Dep_Date as Date, Dep_id as Particular,Dep_Amt as Credit,Dep_Mnly_int as Debit from Depositor", con_str);


MY Output should be like this

Date Particulars Credit Debit
1/12/2010 Interest Paid to Lno1 should be empty 500
1/12/2010 Amount Deposited from Dno1 1000 should be empty


How to display this text in Datagrid of Paricular Column and Credit Column should be empty.. Here I've used union for fetching from two table..
Posted
Comments
yaprig 28-Dec-10 0:38am    
is ur output coming correctly in dataset?????

1 solution

 
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