.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month

Home >> Forum >> WPF >> Post New QuestionBookmark and Share Subscribe to Forum

create bill and print in wpf

Posted By: shreya     Posted Date: October 21, 2010    Points:2   Category :WPF
hi all,

i m new to wpf well i hav created insert, update, and delete of item code, name and price.

n i hav bind the item code to the combo box too,

n now i want to create a bill in which if i select a item code in the in the combo box then consequent item name should be displayed and individual price of item should be multiplied with the quantity entered in textbox and displayed.

how can i do dat pls help

thanks & regards

Author: Syed Shakeer Hussain             
Posted Date: October 22, 2010     Points: 5   


Fist get the Price of Selected Item from a ComboBox and sotre in a varible(int dataType).I think the Price will be available in your table.

Select Price from tablename where itemcode='cmbbox1.SelectedValue'
eg:int Price =20;
Second DoubleClick your Quantity TextBox and use the logic as follows according your requirement

int totalPrice=price *Convert.Toint32(QuantityTextbox .Text);

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend