手动生成datagridview private void PopulateDataGridView() { DataGridView1.Size = new Size(350, 400); DataGridView1.AllowUserToDeleteRows = true; // Add columns to the DataGridView. DataGridView1.ColumnCount = 4; DataGridView1.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect; // Set the properti