Click here to Skip to main content
15,902,445 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
1-At the start of the code sheet must fill the combo box with the list of members (the code).

2-The choice of a code, information about the member in particular the number of penalty and borrowing being displayed and a gate charge of all loans not yet returned by that Participant (NUMEMP, CODOUV, DATEMP, NbrJourPassé).

3-The choice of a row in the grid and click on the OK button saves the return of the selected item, with a return date equal to the system date

the firste question I have this code


C#
AD.Fill(DS.ADHERENTS);

comboBox1.DataSource = DS.Tables["ADHERENTS"];

comboBox1.ValueMember = "CODE_ADHERENTS";
comboBox1.DisplayMember = "CODE_ADHERENTS";

in the 2 question i had storedprocuder but i dont knon how i used ; this is the requetes of the procedure

SQL
SELECT     dbo.EMPRUNTS.CODE_EMPRUNTS, dbo.EMPRUNTS.CODE_ADHERENTS, dbo.EMPRUNTS.CODE_OUVRAGES, DATEDIFF(day,DATE_EMPRUNTS,getdate()) as NBRJOURPASSé, 
                      dbo.OUVRAGES.EMPRUNTE
FROM         dbo.EMPRUNTS INNER JOIN
                      dbo.OUVRAGES ON dbo.EMPRUNTS.CODE_OUVRAGES = dbo.OUVRAGES.CODE_OUVRAGES

the 3 i dont know how
Posted
Updated 3-Apr-14 10:03am
v2
Comments
Sergey Alexandrovich Kryukov 3-Apr-14 15:12pm    
Not a question, not clear, the problem is not formulated...
—SA
ZurdoDev 3-Apr-14 21:15pm    
It is not clear where you are stuck.

i dont know how i gate charge the gridview with the procedur
 
Share this answer
 
Comments
ZurdoDev 3-Apr-14 21:16pm    
You posted this as a solution when I believe you meant to reply to SA's comment. However, this still is not clear at all.
I have a storedprocedure in sql server and i want charge a gridview with this storedprocedur .. The question is how ?
 
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