private void UPDATE_ORDER_DETAILS() { for (int i = 0; i < dataGridView_INVO_ITEMS.Rows.Count; i++) { int ID_PRD = int.Parse(dataGridView_INVO_ITEMS.Rows[i].Cells["ITEM_ID"].Value.ToString()); float PRD_QTY = float.Parse(dataGridView_INVO_ITEMS.Rows[i].Cells["ITEM_QTY"].Value.ToString()); float QTY_BY_PRICE = float.Parse(dataGridView_INVO_ITEMS.Rows[i].Cells["ITEM_TOTAL"].Value.ToString()); float PRD_PRICE = float.Parse(dataGridView_INVO_ITEMS.Rows[i].Cells["ITEM_PRICE"].Value.ToString()); ORD.UPDATE_ORDER_DETAILS(ID_ORDER, ID_PRD, PRD_QTY, QTY_BY_PRICE, PRD_PRICE); } }