gridview添加新行?
private void Addyqt_ToolStripMenuItem_Click(object sender, EventArgs e)//右鍵添加菜單 { yqtqkdydv.Rows.Add("", "", "", “”, "", "")
;//datagridview的列數(shù)個"" int hh = yqtqkdydv.Rows.Count; yqtqkdydv.CurrentCell = yqtqkdydv.Rows[hh - 1].Cells[1]; } //在新增的行寫入自己的數(shù)據(jù),按下確定鍵后連接數(shù)據(jù)庫,先入庫然后再利用datagridview動態(tài)綁定方式顯示