分为连接数据源和非数据源两种
非连接数据源
dataGridView1.ColumnCount = 3;
dataGridView1.Columns[0].HeaderText = "ID号";
dataGridView1.Columns[1].HeaderText = "时间";
dataGridView1.Columns[2].HeaderText = "心跳值";
DataGridViewRow row = new DataGridViewRow();
//row.Cells["ID号"].Value = "1";
;
row.CreateCells(dataGridView1);
&nb