0
昨天我有几个问题,但我会解释它更好在网格中选择最近添加的名称
这里是代码
private void btnAddNewEmployer_Click(object sender, EventArgs e) {
//This first code, call a Dialog where the user adds a name a another fields
using (frmEmployersManager employerManager = new frmEmployersManager()) {
employerManager.Init(true);
employerManager.ShowDialog();
}
//When they click the Save button, the dialog close, and reloads the grid
ReloadEmployerData(ctlFilter.Filter);
}
和好,我真的不知道怎么弄最近添加的名称,当它重新加载时在网格中被选中
任何帮助?
如何获取名称和frmEmployersManager中提供的信息?将公共属性添加到将返回文本框的值(或任何其他输入)并将其分配给变量之前,您离开该使用块的窗体。 – krillgar