예제 #1
0
        private void Config_columns_Click(object sender, EventArgs e)
        {
            List <DataGridViewColumnCollection> list = new List <DataGridViewColumnCollection>();

            list.Add(datagrid_view.Columns);
            ConfigColumnsForm config_form = new ConfigColumnsForm(list);

            // portfolios_form.MdiParent = this;
            config_form.Text = "Configuration";
            config_form.ShowDialog(this);
        }
        //private void LoadFolioPositionsData(DataGridView dataGridView,string folio_name)
        //{

        //    DataTable data_table = NewPositionViewDataTable(dataGridView);
        //    dataGridView.DataSource = data_table;


        //}

        private void Config_columns_Click(object sender, EventArgs e)
        {
            List <DataGridViewColumnCollection> list = new List <DataGridViewColumnCollection>();

            foreach (TabPage tab in tabControl_portfolios.Controls)
            {
                foreach (Control control in tab.Controls)
                {
                    if (control.Name == "dataGridView")
                    {
                        DataGridView view = (DataGridView)control;

                        list.Add(view.Columns);
                    }
                }
            }
            ConfigColumnsForm config_form = new ConfigColumnsForm(list);

            // portfolios_form.MdiParent = this;
            config_form.Text = "Configuration";
            config_form.ShowDialog(this);
        }