示例#1
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            FrmSetInfoEditTable edit = new FrmSetInfoEditTable(0, _setOrdKey);

            if (edit.ShowDialog() == DialogResult.OK)
            {
                ReBindColumn();
            }
        }
示例#2
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (grdTableColumn.SelectedRows.Count == 0)
     {
         MessageBox.Show(@"请选择要修改的记录");
         return;
     }
     if (grdTableColumn.CurrentRow != null)
     {
         int id = Convert.ToInt32(grdTableColumn.CurrentRow.Cells[0].Value.ToString().Trim());
         FrmSetInfoEditTable edit = new FrmSetInfoEditTable(id, _setOrdKey);
         if (edit.ShowDialog() == DialogResult.OK)
         {
             ReBindColumn();
         }
     }
 }