

CodePudding user response:
Of new bosses solutions, genuflect is beggedCodePudding user response:
//click the confirm buttonPrivate void button1_Click (object sender, EventArgs e)
{
//textBoxShangPin commodity name input box
//textBoxDanJia unit price input box
//textBoxShuLiang quantity input box
String strje=(double. Parse (textBoxDanJia. Text) * double Parse (textBoxShuLiang. Text)). The ToString ();//get amount
String [] strlist={textBoxDanJia textBoxShangPin. Text, Text, textBoxShuLiang. Text, strje};
DataGridView1. Rows. The Add (strlist);//added to the form
}