DataGridViewAutoSizeColumnModeEventArgs DataGridViewAutoSizeColumnModeEventArgs DataGridViewAutoSizeColumnModeEventArgs DataGridViewAutoSizeColumnModeEventArgs Class


AutoSizeColumnModeChanged 이벤트에 대한 데이터를 제공합니다.Provides data for the AutoSizeColumnModeChanged event.

public ref class DataGridViewAutoSizeColumnModeEventArgs : EventArgs
public class DataGridViewAutoSizeColumnModeEventArgs : EventArgs
type DataGridViewAutoSizeColumnModeEventArgs = class
    inherit EventArgs
Public Class DataGridViewAutoSizeColumnModeEventArgs
Inherits EventArgs


다음 코드 예제에서는이 형식의 사용을 보여 줍니다.The following code example illustrates the use of this type. 이 예제는에서 사용할 수 있는 보다 큰 예제의 일부 방법: Windows Forms DataGridView 컨트롤에서 열 조작합니다.This example is part of a larger example available in How to: Manipulate Columns in the Windows Forms DataGridView Control.

// Updated the criteria label.
void dataGridView_AutoSizeColumnModeChanged( Object^ /*sender*/, DataGridViewAutoSizeColumnModeEventArgs^ args )
   args->Column->DataGridView->Parent->Controls[ L"flowlayoutpanel" ]->Controls[ criteriaLabel ]->Text = String::Concat( criteriaLabel, args->Column->AutoSizeMode );
// Updated the criteria label.
private void dataGridView_AutoSizeColumnModeChanged(object sender,
    DataGridViewAutoSizeColumnModeEventArgs args)
        Text = criteriaLabel
        + args.Column.AutoSizeMode.ToString();
' Updated the criteria label.
Private Sub dataGridView_AutoSizeColumnCriteriaChanged( _
    ByVal sender As Object, _
    ByVal args As DataGridViewAutoSizeColumnModeEventArgs) _
    Handles DataGridView.AutoSizeColumnModeChanged

    args.Column.DataGridView.Parent. _
    Controls("flowlayoutpanel"). _
    Controls(criteriaLabel).Text = _
        criteriaLabel & args.Column.AutoSizeMode.ToString
End Sub


AutoSizeColumnModeChanged 이벤트가 발생 때 값을 AutoSizeMode 에 있는 열의 속성을 DataGridView 컨트롤이 변경 합니다.The AutoSizeColumnModeChanged event is raised when the value of the AutoSizeMode property of a column in a DataGridView control changes.

이벤트를 처리 하는 방법에 대 한 자세한 내용은 참조 하세요. 이벤트 처리 및 발생합니다.For more information about how to handle events, see Handling and Raising Events.


DataGridViewAutoSizeColumnModeEventArgs(DataGridViewColumn, DataGridViewAutoSizeColumnMode) DataGridViewAutoSizeColumnModeEventArgs(DataGridViewColumn, DataGridViewAutoSizeColumnMode) DataGridViewAutoSizeColumnModeEventArgs(DataGridViewColumn, DataGridViewAutoSizeColumnMode) DataGridViewAutoSizeColumnModeEventArgs(DataGridViewColumn, DataGridViewAutoSizeColumnMode)

DataGridViewAutoSizeColumnModeEventArgs 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the DataGridViewAutoSizeColumnModeEventArgs class.


Column Column Column Column

AutoSizeMode 속성이 변경된 열을 가져옵니다.Gets the column with the AutoSizeMode property that changed.

PreviousMode PreviousMode PreviousMode PreviousMode

열의 AutoSizeMode 속성의 이전 값을 가져옵니다.Gets the previous value of the AutoSizeMode property of the column.


Equals(Object) Equals(Object) Equals(Object) Equals(Object)

지정한 개체와 현재 개체가 같은지 여부를 확인합니다.Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

기본 해시 함수로 작동합니다.Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

현재 인스턴스의 Type을 가져옵니다.Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

현재 Object의 단순 복사본을 만듭니다.Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

현재 개체를 나타내는 문자열을 반환합니다.Returns a string that represents the current object.

(Inherited from Object)

적용 대상

추가 정보