take a look to the form frmPurchaseDetails:-
You can see the ProductName column is being filled in frm_Load Event.
the very next column PurchaseRate is to be filled as per the selection of products.
before going to the task, take a look the form frmProduct where the product Name come from:-
You can see Product Name and Purchase Rate column.
I want also increment of TotalAmount column ( purchase Rate * quantity - Discount=Total Amount)
here is the form to be look like:-
So please help me on this topic


Iftikar HussainRank #423 · 5.9K reputationPosted Jul 25, 2013, 2:52 AM EDT
Regards,
Iftikar
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 24, 2013, 10:55 PM EDT
Try like this
this.dataGridView1.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellEndEdit);
}
Regards,
Iftikar
Bineesh ViswanathRank #1,681 · 907 reputationPosted Jul 24, 2013, 11:45 PM EDT
there had a problem in my project before adding your code. here is the problem.
frmpurchaseDetails:-
The problem is rows being added automatically when I select a comboBox item.
After added your code I am getting a error. here is the error:-
please fix my error.
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 25, 2013, 12:27 AM EDT
Regards,
Iftikar
Bineesh ViswanathRank #1,681 · 907 reputationPosted Jul 25, 2013, 1:41 AM EDT
in this int total=0;
var rate=7;
var quantity=NULL( error) .
the error look like:-
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 25, 2013, 1:48 AM EDT
Regards,
Iftikar
Bineesh ViswanathRank #1,681 · 907 reputationPosted Jul 25, 2013, 2:34 AM EDT
here is the current situation:-
The variable's value at the moment is:-
int total=0;
var rate=11;
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 25, 2013, 2:41 AM EDT
total = (Convert.ToInt32(rate) * Convert.ToInt32(quantity)) - discount;
Regards,
Iftikar
Bineesh ViswanathRank #1,681 · 907 reputationPosted Jul 25, 2013, 2:47 AM EDT
The total amount is being populated in the column Quantity. I want this in the column Total Amount
but the purchaseRate still not populated.
here is the form:-