New hair for the first time how many points did not hope you give a hand to help post program is like this:
Private void dataGridView1_CellContentClick (object sender, DataGridViewCellEventArgs e)
{
TextBox1. Text=dataGridView1. Rows [dataGridView1. CurrentRow. Index]. Cells [r]. "name" Value. The ToString ();
TextBox2. Text=dataGridView1. Rows [dataGridView1. CurrentRow. Index]. Cells [r]. "receipt number" Value. The ToString ();
TextBox3. Text=dataGridView1. Rows [dataGridView1. CurrentRow. Index]. Cells [r]. "the number" Value. The ToString ();
TextBox4. Text=dataGridView1. Rows [dataGridView1. CurrentRow. Index]. Cells [r]. "unit price" Value. The ToString ();
DateTimePicker1. Value=https://bbs.csdn.net/topics/dataGridView1.Rows [dataGridView1. CurrentRow. Index]. Cells [r]. "name" Value. The ToString ();
TextBox6. Text=dataGridView1. Rows [dataGridView1. CurrentRow. Index]. Cells [r]. "supplier name" Value. The ToString ();
}
There is a hand mistake hope to have a great god, thank you very much
CodePudding user response:
DateTimePicker1. Value=https://bbs.csdn.net/topics/DateTime. Parse (dataGridView1 Rows [dataGridView1. CurrentRow. Index]. Cells [r]. "name" Value. The ToString ())