예제 #1
0
        // If the user sets AutoSizeRowMode to None, reset every row to its explicit height
        internal void ResetToExplicitHeight()
        {
            this.height = explicit_height;

            if (DataGridView != null)
            {
                DataGridView.OnRowHeightChanged(new DataGridViewRowEventArgs(this));
            }
        }
예제 #2
0
        // Set the row's height without overwriting the explicit_height, so we
        // can go back to the user's requested height when they turn off AutoSize
        internal void SetAutoSizeHeight(int height)
        {
            this.height = height;

            if (DataGridView != null)
            {
                DataGridView.Invalidate();
                DataGridView.OnRowHeightChanged(new DataGridViewRowEventArgs(this));
            }
        }