DataGridView1.Rows[2].Frozen = true;
DataGridView1.Rows[1].Frozen = true;
试一试冻结行