Пример #1
0
 private void AutoSizeRowsMode(object sender, DataGridViewAutoSizeModeEventArgs e)
 {
     dataGridView1.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.AllCells;
 }
Пример #2
0
 private void r(object sender, DataGridViewAutoSizeModeEventArgs e)
 {
 }
 private void dataGridView2_AutoSizeRowsModeChanged(object sender, DataGridViewAutoSizeModeEventArgs e)
 {
     dataGridView2.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.AllCells;
 }
Пример #4
0
 private void dataGridView1_AutoSizeRowsModeChanged(object sender, DataGridViewAutoSizeModeEventArgs e)
 {
 }
        public void Ctor_Bool(bool previousModeAutoSized)
        {
            var e = new DataGridViewAutoSizeModeEventArgs(previousModeAutoSized);

            Assert.Equal(previousModeAutoSized, e.PreviousModeAutoSized);
        }
Пример #6
0
        /// <summary>
        /// Extends BeginInvoke so that when a state object is not needed, null does not need to be passed.
        /// <example>
        /// datagridviewautosizemodeeventhandler.BeginInvoke(sender, e, callback);
        /// </example>
        /// </summary>
        public static IAsyncResult BeginInvoke(this DataGridViewAutoSizeModeEventHandler datagridviewautosizemodeeventhandler, Object sender, DataGridViewAutoSizeModeEventArgs e, AsyncCallback callback)
        {
            if (datagridviewautosizemodeeventhandler == null)
            {
                throw new ArgumentNullException("datagridviewautosizemodeeventhandler");
            }

            return(datagridviewautosizemodeeventhandler.BeginInvoke(sender, e, callback, null));
        }
Пример #7
0
 private void DgvConstructor_ColumnHeadersHeightSizeModeChanged(object sender, DataGridViewAutoSizeModeEventArgs e)
 {
     ResizeDGV();
 }
Пример #8
0
 protected override void   OnAutoSizeRowsModeChanged(DataGridViewAutoSizeModeEventArgs e)
 {
     Log("OnAutoSizeRowsModeChanged               "); base.OnAutoSizeRowsModeChanged(e);
 }
Пример #9
0
 protected override void   OnRowHeadersWidthSizeModeChanged(DataGridViewAutoSizeModeEventArgs e)
 {
     Log("OnRowHeadersWidthSizeModeChanged        "); base.OnRowHeadersWidthSizeModeChanged(e);
 }
Пример #10
0
 protected override void   OnColumnHeadersHeightSizeModeChanged(DataGridViewAutoSizeModeEventArgs e)
 {
     Log("OnColumnHeadersHeightSizeModeChanged    "); base.OnColumnHeadersHeightSizeModeChanged(e);
 }