/// <summary> /// 填充数据网格 /// </summary> void FillDataGirdView() { //清理数据源、清理列(防止列按钮不断增加) dataGridView1.DataSource = null; dataGridView1.Columns.Clear(); dataGridView1.DataSource = TicketDAL.FindList(null); dataGridView1.Columns["movieName"].HeaderText = "电影名"; dataGridView1.Columns["date"].HeaderText = "上映日期"; dataGridView1.Columns["price"].HeaderText = "票价"; }