コード例 #1
0
        private void btn_SelectColumns_Click(object sender, EventArgs e)
        {
            FrmColumnSelection frm = new FrmColumnSelection();

            frm.Selectee        = this.GridView;
            frm.SelectedColumns = GetAllVisiableColumns();
            if (frm.ShowDialog() == DialogResult.OK)
            {
                string[] cols = frm.SelectedColumns;
                if (cols != null && cols.Length > 0)
                {
                    string temp = string.Join(",", cols);
                    AppSettings.CurrentSetting.SaveConfig(string.Format("{0}_Columns", this.GetType().Name), temp);
                    ShowVisableColumns();
                }
            }
        }
コード例 #2
0
 private void btn_SelectColumns_Click(object sender, EventArgs e)
 {
     FrmColumnSelection frm = new FrmColumnSelection();
     frm.Selectee = this.GridView;
     frm.SelectedColumns = GetAllVisiableColumns();
     if (frm.ShowDialog() == DialogResult.OK)
     {
         string[] cols = frm.SelectedColumns;
         if (cols != null && cols.Length > 0)
         {
             string temp = string.Join(",", cols);
             AppSettings.CurrentSetting.SaveConfig(string.Format("{0}_Columns", this.GetType().Name), temp);
             ShowVisableColumns();
         }
     }
 }