Click here to Skip to main content
15,889,034 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Desktop application in c#.net

I am preparing a project on wholesale shop mgmt..
I am getting a problem in selling multiple items at different price at same time..

I am not getting , which type of controls or format of controls should i use.. to dynamically enter multiple product items , prices and quantity and get total cost of all values.......

i have used textbox controls for entering upto 10 values .......but the problem is .....

if there are 15- 20 items user have to enter... so how can i dynamically handle them..

and how to enter and retrieve this multiple values from database......

how can i design this form ...........

i have used lblproduct , txtproductname, txtproductprice, txtproductqty, txtprodamt...
i have used lblproduct , txtproductname1, txtproductprice, txtproductqty, txtprodamt...
i have used lblproduct , txtproductname2, txtproductprice, txtproductqty, txtprodamt...
i have used lblproduct , txtproductname3, txtproductprice, txtproductqty, txtprodamt...


how can i design this form in more specific and dynamic way.....

plz reply me the complete solution..........as soon as possible
Posted
Comments
Richard MacCutchan 4-Sep-13 4:54am    
Use Listboxes, Comboboxes, Datagrids etc.
Menon Santosh 4-Sep-13 5:21am    
i suggest you to use Datagridview
[no name] 4-Sep-13 5:47am    
It would be the exact same answer you got before. You might consider buying a book on programming and go through it. We cannot possibly teach you how to program in a forum posting.

1 solution

Try this idea....

Have a single textbox textbox 1 and two GridView GvItems and GVBilling. Create KeyUp event of textbox1 , check if it is enter key pressed by User,
then run a Database Query, Fetch all data filtered according to item name in textbox1.
bind GvItems with dataset object. you will find all items of same name with different prices and description from ur stock table.
Now on GvItems_cellClick event Fetch the values of row and add it in the second GridView GVBilling.

Now to calculate TOTAL write code GVBilling_rowsAdded
sum toal value of specific cells of GVBilling and display it in another txtbox.....
 
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