Exemple #1
0
        /// <summary>
        /// 窗体载入
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void FormQueryInfo_Load(object sender, EventArgs e)
        {
            this.dataGridView1.ColumnWidthChanged -= new System.Windows.Forms.DataGridViewColumnEventHandler(
                this.dataGridView1_ColumnWidthChanged);

            ColumnWidthControl.SetDataGridView(labelTitle.Text, dataGridView1);

            this.dataGridView1.ColumnWidthChanged += new System.Windows.Forms.DataGridViewColumnEventHandler(
                this.dataGridView1_ColumnWidthChanged);
        }
Exemple #2
0
 private void dataGridView1_ColumnWidthChanged(object sender, DataGridViewColumnEventArgs e)
 {
     ColumnWidthControl.SaveColumnParams(labelTitle.Text, e.Column);
 }