Skip to content

Commit 6ad197b

Browse files
author
SmartLinli
committed
update
1 parent a16fdcc commit 6ad197b

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

QuickDemo/5.Table/Table/frm_StudentTable.cs

-12
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ public frm_StudentTable()
1616
{
1717
InitializeComponent();
1818
this.StartPosition = FormStartPosition.CenterScreen;
19-
this.dgv_Student.CellClick += Dgv_Student_CellClick;
2019
}
2120
/// <summary>
2221
/// 点击载入按钮;
@@ -61,16 +60,5 @@ private void btn_Submit_Click(object sender, EventArgs e)
6160
.Submit(this.dgv_Student);
6261
MessageBox.Show($"更新{rowAffected}行。");
6362
}
64-
/// <summary>
65-
/// 点击数据网格视图中的某个单元格;
66-
/// </summary>
67-
/// <param name="sender"></param>
68-
/// <param name="e"></param>
69-
/// <exception cref="NotImplementedException"></exception>
70-
private void Dgv_Student_CellClick(object sender, DataGridViewCellEventArgs e)
71-
{
72-
string currentStudentName = this.dgv_Student.CurrentRow.Cells["Name"].Value.ToString();
73-
this.lbl_CurrentStudent.Text = $"当前学生姓名:{currentStudentName}";
74-
}
7563
}
7664
}

QuickDemo/5.Table/Table/frm_StudentTable.designer.cs

-13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)