From 5e8132f8dde91a8fcb6347fc7df119357ef7c2cc Mon Sep 17 00:00:00 2001 From: antoc0der <1@DESKTOP-K1L8ND3> Date: Wed, 28 Feb 2024 14:46:45 +0300 Subject: [PATCH] y --- ProjectFlowerShop/MainForm.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ProjectFlowerShop/MainForm.cs b/ProjectFlowerShop/MainForm.cs index 5d70efb..13fab38 100644 --- a/ProjectFlowerShop/MainForm.cs +++ b/ProjectFlowerShop/MainForm.cs @@ -87,7 +87,7 @@ namespace ProjectFlowerShop return new OrderBindingModel { Id = id, - FlowerId = Convert.ToInt32(DataGridView.SelectedRows[0].Cells["IceCreamId"].Value), + FlowerId = Convert.ToInt32(DataGridView.SelectedRows[0].Cells["FlowerId"].Value), Status = Enum.Parse(DataGridView.SelectedRows[0].Cells["Status"].Value.ToString()), Count = Convert.ToInt32(DataGridView.SelectedRows[0].Cells["Count"].Value), Sum = double.Parse(DataGridView.SelectedRows[0].Cells["Sum"].Value.ToString()),