DataGridViewComboBoxCell 클래스

정의

DataGridView 컨트롤에 콤보 상자를 표시합니다.

public ref class DataGridViewComboBoxCell : System::Windows::Forms::DataGridViewCell
public class DataGridViewComboBoxCell : System.Windows.Forms.DataGridViewCell
type DataGridViewComboBoxCell = class
    inherit DataGridViewCell
Public Class DataGridViewComboBoxCell
Inherits DataGridViewCell
상속
DataGridViewComboBoxCell

예제

다음 코드 예제에서는 클래스를 DataGridViewComboBoxColumn 사용 하는 클래스를 보여 줍니다 DataGridViewComboBoxCell . 이 예제에서 해당 열 속성이 설정된 것과 동일한 방식으로 셀 DataSource, ValueMemberDisplayMember 속성을 설정할 수 있습니다. 이 예제는에서 사용할 수 있는 보다 큰 예제의 일부는 DataGridViewComboBoxColumn 클래스 개요 항목입니다.

private:
    DataGridViewComboBoxColumn^ CreateComboBoxColumn()
    {
        DataGridViewComboBoxColumn^ column =
            gcnew DataGridViewComboBoxColumn();
        {
            column->DataPropertyName = ColumnName::TitleOfCourtesy.ToString();
            column->HeaderText = ColumnName::TitleOfCourtesy.ToString();
            column->DropDownWidth = 160;
            column->Width = 90;
            column->MaxDropDownItems = 3;
            column->FlatStyle = FlatStyle::Flat;
        }
        return column;
    }

private:
    void SetAlternateChoicesUsingDataSource(DataGridViewComboBoxColumn^ comboboxColumn)
    {
        {
            comboboxColumn->DataSource = RetrieveAlternativeTitles();
            comboboxColumn->ValueMember = ColumnName::TitleOfCourtesy.ToString();
            comboboxColumn->DisplayMember = comboboxColumn->ValueMember;
        }
    }

private:
    DataTable^ RetrieveAlternativeTitles()
    {
        return Populate("SELECT distinct TitleOfCourtesy FROM Employees");
    }

    String^ connectionString;

private:
    DataTable^ Populate(String^ sqlCommand)
    {
        SqlConnection^ northwindConnection = gcnew SqlConnection(connectionString);
        northwindConnection->Open();

        SqlCommand^ command = gcnew SqlCommand(sqlCommand, northwindConnection);
        SqlDataAdapter^ adapter = gcnew SqlDataAdapter();
        adapter->SelectCommand = command;

        DataTable^ table = gcnew DataTable();
        adapter->Fill(table);

        return table;
    }

    // Using an enum provides some abstraction between column index
    // and column name along with compile time checking, and gives
    // a handy place to store the column names.
    enum class ColumnName
    {
        EmployeeID,
        LastName,
        FirstName,
        Title,
        TitleOfCourtesy,
        BirthDate,
        HireDate,
        Address,
        City,
        Region,
        PostalCode,
        Country,
        HomePhone,
        Extension,
        Photo,
        Notes,
        ReportsTo,
        PhotoPath,
        OutOfOffice
    };
private DataGridViewComboBoxColumn CreateComboBoxColumn()
{
    DataGridViewComboBoxColumn column =
        new DataGridViewComboBoxColumn();
    {
        column.DataPropertyName = ColumnName.TitleOfCourtesy.ToString();
        column.HeaderText = ColumnName.TitleOfCourtesy.ToString();
        column.DropDownWidth = 160;
        column.Width = 90;
        column.MaxDropDownItems = 3;
        column.FlatStyle = FlatStyle.Flat;
    }
    return column;
}

private void SetAlternateChoicesUsingDataSource(DataGridViewComboBoxColumn comboboxColumn)
{
    {
        comboboxColumn.DataSource = RetrieveAlternativeTitles();
        comboboxColumn.ValueMember = ColumnName.TitleOfCourtesy.ToString();
        comboboxColumn.DisplayMember = comboboxColumn.ValueMember;
    }
}

private DataTable RetrieveAlternativeTitles()
{
    return Populate("SELECT distinct TitleOfCourtesy FROM Employees");
}

string connectionString =
    "Integrated Security=SSPI;Persist Security Info=False;" +
    "Initial Catalog=Northwind;Data Source=localhost";

private DataTable Populate(string sqlCommand)
{
    SqlConnection northwindConnection = new SqlConnection(connectionString);
    northwindConnection.Open();

    SqlCommand command = new SqlCommand(sqlCommand, northwindConnection);
    SqlDataAdapter adapter = new SqlDataAdapter();
    adapter.SelectCommand = command;

    DataTable table = new DataTable();
    table.Locale = System.Globalization.CultureInfo.InvariantCulture;
    adapter.Fill(table);

    return table;
}

// Using an enum provides some abstraction between column index
// and column name along with compile time checking, and gives
// a handy place to store the column names.
enum ColumnName
{
    EmployeeId,
    LastName,
    FirstName,
    Title,
    TitleOfCourtesy,
    BirthDate,
    HireDate,
    Address,
    City,
    Region,
    PostalCode,
    Country,
    HomePhone,
    Extension,
    Photo,
    Notes,
    ReportsTo,
    PhotoPath,
    OutOfOffice
};
Private Function CreateComboBoxColumn() _
    As DataGridViewComboBoxColumn
    Dim column As New DataGridViewComboBoxColumn()

    With column
        .DataPropertyName = ColumnName.TitleOfCourtesy.ToString()
        .HeaderText = ColumnName.TitleOfCourtesy.ToString()
        .DropDownWidth = 160
        .Width = 90
        .MaxDropDownItems = 3
        .FlatStyle = FlatStyle.Flat
    End With
    Return column
End Function

Private Sub SetAlternateChoicesUsingDataSource( _
    ByVal comboboxColumn As DataGridViewComboBoxColumn)
    With comboboxColumn
        .DataSource = RetrieveAlternativeTitles()
        .ValueMember = ColumnName.TitleOfCourtesy.ToString()
        .DisplayMember = .ValueMember
    End With
End Sub

Private Function RetrieveAlternativeTitles() As DataTable
    Return Populate( _
        "SELECT distinct TitleOfCourtesy FROM Employees")
End Function

Private connectionString As String = _
        "Integrated Security=SSPI;Persist Security Info=False;" _
        & "Initial Catalog=Northwind;Data Source=localhost"

Private Function Populate(ByVal sqlCommand As String) As DataTable
    Dim northwindConnection As New SqlConnection(connectionString)
    northwindConnection.Open()

    Dim command As New SqlCommand(sqlCommand, _
        northwindConnection)
    Dim adapter As New SqlDataAdapter()
    adapter.SelectCommand = command
    Dim table As New DataTable()
    table.Locale = System.Globalization.CultureInfo.InvariantCulture
    adapter.Fill(table)

    Return table
End Function

' Using an enum provides some abstraction between column index
' and column name along with compile time checking, and gives
' a handy place to store the column names.
Enum ColumnName
    EmployeeId
    LastName
    FirstName
    Title
    TitleOfCourtesy
    BirthDate
    HireDate
    Address
    City
    Region
    PostalCode
    Country
    HomePhone
    Extension
    Photo
    Notes
    ReportsTo
    PhotoPath
    OutOfOffice
End Enum

설명

클래스는 DataGridViewComboBoxCell 목록 선택 필드와 결합된 편집 필드인 콤보 상자 컨트롤을 표시하는 데 사용되는 특수 형식 DataGridViewCell 입니다. 현재 선택한 DataGridViewComboBoxCell 는 셀의 속성이 로 설정되어 있다고 가정하여 사용자가 셀 ReadOnly 의 값을 변경할 수 있는 을 호스트 DataGridViewComboBoxEditingControl 합니다false.

컨트롤과 ComboBox 달리 에는 DataGridViewComboBoxCellSelectedValue 속성이 SelectedIndex 없습니다. 대신 드롭다운 목록에서 값을 선택하면 셀 Value 속성이 설정됩니다.

DataGridViewComboBoxColumn 열 형식이이 형식의 셀을 포함 하도록 특수화 합니다. 기본적으로 DataGridViewComboBoxColumn.CellTemplate 새 인스턴스화될 DataGridViewComboBoxCell합니다. 기존 열 내의 셀 패턴 DataGridViewComboBoxCell, 열 설정 CellTemplate 속성 패턴으로 사용 하 여 셀을 합니다.

열의 셀 관련 속성을는 비슷한 이름의 템플릿 셀 속성에 대 한 래퍼입니다. 템플릿 셀의 속성 값을 변경 하면 셀만 템플릿을 기반으로 변경 된 후 추가 된 적용 됩니다. 그러나 열의 셀 관련 속성 값을 변경, 템플릿 셀과 열에 다른 모든 셀을 업데이트 되며 필요한 경우 열 표시를 새로 고칩니다.

특정 셀의 열 값을 재정의 DataGridViewComboBoxColumn 하지 않으려면 일반적으로 형식을 사용합니다. 드롭다운 목록을 채우기 위한 클래스 개요 항목에 DataGridViewComboBoxColumn 설명된 지침은 셀 인스턴스와 열 인스턴스 모두에 적용됩니다.

상속자 참고

파생 하는 경우 DataGridViewComboBoxCell 파생된 클래스에 새 속성 추가 재정의 해야 합니다 Clone() 복제 작업 중 새 속성을 복사 하는 방법입니다. 또한 기본 클래스를 호출 해야 Clone() 메서드는 기본 클래스의 속성이 새로운 셀에 복사 되도록 합니다.

생성자

DataGridViewComboBoxCell()

DataGridViewComboBoxCell 클래스의 새 인스턴스를 초기화합니다.

속성

AccessibilityObject

DataGridViewCell.DataGridViewCellAccessibleObject에 할당된 DataGridViewCell를 가져옵니다.

(다음에서 상속됨 DataGridViewCell)
AutoComplete

셀에서 셀에 입력되는 문자를 드롭다운 목록의 선택과 일치시킬지 여부를 나타내는 값을 가져오거나 설정합니다.

ColumnIndex

이 셀의 열 인덱스를 가져옵니다.

(다음에서 상속됨 DataGridViewCell)
ContentBounds

셀의 내용 영역을 둘러싸는 경계 사각형을 가져옵니다.

(다음에서 상속됨 DataGridViewCell)
ContextMenuStrip

셀과 연결된 바로 가기 메뉴를 가져오거나 설정합니다.

(다음에서 상속됨 DataGridViewCell)
DataGridView

이 요소와 관련된 DataGridView 컨트롤을 가져옵니다.

(다음에서 상속됨 DataGridViewElement)
DataSource

데이터에 드롭다운 목록에 표시된 사용 가능한 선택이 포함된 데이터 소스를 가져오거나 설정합니다.

DefaultNewRowValue

새 레코드에 대한 행의 셀 기본값을 가져옵니다.

(다음에서 상속됨 DataGridViewCell)
Displayed

셀이 현재 화면에 표시되는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 DataGridViewCell)
DisplayMember

드롭다운 목록에 표시할 선택을 수집할 위치를 지정하는 문자열을 가져오거나 설정합니다.

DisplayStyle

편집 모드에 있지 않을 때 콤보 상자가 표시되는 방법을 결정하는 값을 가져오거나 설정합니다.

DisplayStyleForCurrentCellOnly

해당 셀이 DisplayStyle 컨트롤의 현재 셀인 경우에만 DataGridView 속성 값을 셀에 적용할지 여부를 나타내는 값을 가져오거나 설정합니다.

DropDownWidth

콤보 상자의 드롭다운 목록 부분 너비를 가져오거나 설정합니다.

EditedFormattedValue

셀이 편집 모드에 있고 값이 커밋되지 않았는지 여부와 관계없이 셀의 형식이 지정된 현재 값을 가져옵니다.

(다음에서 상속됨 DataGridViewCell)
EditType

셀의 호스팅된 편집 컨트롤의 형식을 가져옵니다.

ErrorIconBounds

셀에 대한 오류 아이콘의 범위를 가져옵니다.

(다음에서 상속됨 DataGridViewCell)
ErrorText

셀과 연결된 오류 조건을 설명하는 텍스트를 가져오거나 설정합니다.

(다음에서 상속됨 DataGridViewCell)
FlatStyle

셀의 평면 스타일 모양을 가져오거나 설정합니다.

FormattedValue

표시를 위해 형식이 지정된 셀 값을 가져옵니다.

(다음에서 상속됨 DataGridViewCell)
FormattedValueType

셀과 연결된 형식이 지정된 값의 클래스 형식을 가져옵니다.

Frozen

셀이 고정되어 있는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 DataGridViewCell)
HasStyle

Style 속성이 설정되었는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 DataGridViewCell)
InheritedState

해당 행과 열의 상태에서 상속된 셀의 현재 상태를 가져옵니다.

(다음에서 상속됨 DataGridViewCell)
InheritedStyle

셀에 현재 적용된 스타일을 가져옵니다.

(다음에서 상속됨 DataGridViewCell)
IsInEditMode

이 셀을 현재 편집하고 있는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 DataGridViewCell)
Items

드롭다운 목록에 표시되는 선택을 나타내는 개체를 가져옵니다.

MaxDropDownItems

드롭다운 목록에 표시되는 최대 항목 수를 가져오거나 설정합니다.

OwningColumn

이 셀을 포함하는 열을 가져옵니다.

(다음에서 상속됨 DataGridViewCell)
OwningRow

이 셀을 포함하는 행을 가져옵니다.

(다음에서 상속됨 DataGridViewCell)
PreferredSize

셀이 들어갈 수 있는 사각형 영역의 크기(픽셀)를 가져옵니다.

(다음에서 상속됨 DataGridViewCell)
ReadOnly

셀의 데이터를 편집할 수 있는지 여부를 나타내는 값을 가져오거나 설정합니다.

(다음에서 상속됨 DataGridViewCell)
Resizable

셀의 크기를 조정할 수 있는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 DataGridViewCell)
RowIndex

셀의 부모 행의 인덱스를 가져옵니다.

(다음에서 상속됨 DataGridViewCell)
Selected

셀이 선택되었는지 여부를 나타내는 값을 가져오거나 설정합니다.

(다음에서 상속됨 DataGridViewCell)
Size

셀의 크기를 가져옵니다.

(다음에서 상속됨 DataGridViewCell)
Sorted

콤보 상자의 항목이 자동으로 정렬되어 있는지 여부를 나타내는 값을 가져오거나 설정합니다.

State

요소의 UI(사용자 인터페이스) 상태를 가져옵니다.

(다음에서 상속됨 DataGridViewElement)
Style

셀의 스타일을 가져오거나 설정합니다.

(다음에서 상속됨 DataGridViewCell)
Tag

셀에 대한 추가 데이터를 포함하는 개체를 가져오거나 설정합니다.

(다음에서 상속됨 DataGridViewCell)
ToolTipText

이 셀과 연결된 도구 설명 텍스트를 가져오거나 설정합니다.

(다음에서 상속됨 DataGridViewCell)
Value

이 셀과 연결된 값을 가져오거나 설정합니다.

(다음에서 상속됨 DataGridViewCell)
ValueMember

드롭다운 목록에 사용되는 내부 값을 수집할 위치를 지정하는 문자열을 가져오거나 설정합니다.

ValueType

셀에 있는 값의 데이터 형식을 가져오거나 설정합니다.

Visible

셀이 숨겨진 행이나 열에 있는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 DataGridViewCell)

메서드

AdjustCellBorderStyle(DataGridViewAdvancedBorderStyle, DataGridViewAdvancedBorderStyle, Boolean, Boolean, Boolean, Boolean)

지정된 조건에 따라 입력 셀 테두리 스타일을 수정합니다.

(다음에서 상속됨 DataGridViewCell)
BorderWidths(DataGridViewAdvancedBorderStyle)

모든 셀 여백의 너비를 나타내는 Rectangle을 반환합니다.

(다음에서 상속됨 DataGridViewCell)
ClickUnsharesRow(DataGridViewCellEventArgs)

셀을 클릭하는 경우 셀의 행을 공유하지 않을 것인지 여부를 나타냅니다.

(다음에서 상속됨 DataGridViewCell)
Clone()

이 셀과 정확하게 일치하는 복사본을 만듭니다.

ContentClickUnsharesRow(DataGridViewCellEventArgs)

셀의 내용을 클릭하는 경우 셀의 행을 공유하지 않을 것인지 여부를 나타냅니다.

(다음에서 상속됨 DataGridViewCell)
ContentDoubleClickUnsharesRow(DataGridViewCellEventArgs)

셀의 내용을 두 번 클릭하는 경우 셀의 행을 공유하지 않을 것인지 여부를 나타냅니다.

(다음에서 상속됨 DataGridViewCell)
CreateAccessibilityInstance()

DataGridViewComboBoxCell 인스턴스에 대한 새 AccessibleObject를 만듭니다.

CreateAccessibilityInstance()

DataGridViewCell에 대해 액세스 가능한 개체를 새로 만듭니다.

(다음에서 상속됨 DataGridViewCell)
DetachEditingControl()

DataGridView에서 셀의 편집 컨트롤을 제거합니다.

Dispose()

DataGridViewCell에서 사용하는 모든 리소스를 해제합니다.

(다음에서 상속됨 DataGridViewCell)
Dispose(Boolean)

DataGridViewCell에서 사용하는 관리되지 않는 리소스를 해제하고, 관리되는 리소스를 선택적으로 해제할 수 있습니다.

(다음에서 상속됨 DataGridViewCell)
DoubleClickUnsharesRow(DataGridViewCellEventArgs)

셀을 두 번 클릭하는 경우 셀의 행을 공유하지 않을 것인지 여부를 나타냅니다.

(다음에서 상속됨 DataGridViewCell)
EnterUnsharesRow(Int32, Boolean)

포커스가 셀로 이동하는 경우 부모 행을 공유하지 않을 것인지 여부를 나타냅니다.

(다음에서 상속됨 DataGridViewCell)
Equals(Object)

지정된 개체가 현재 개체와 같은지 확인합니다.

(다음에서 상속됨 Object)
GetClipboardContent(Int32, Boolean, Boolean, Boolean, Boolean, String)

서식이 지정된 셀 값을 검색하여 Clipboard에 복사합니다.

(다음에서 상속됨 DataGridViewCell)
GetContentBounds(Graphics, DataGridViewCellStyle, Int32)

지정된 Graphics 와 셀 스타일을 사용하여 계산된 셀의 콘텐츠 영역을 둘러싸는 경계 사각형을 반환합니다.

GetContentBounds(Int32)

현재 셀에 적용되는 셀 스타일과 기본 Graphics를 사용하여 셀의 내용 영역을 둘러싸는 경계 사각형을 반환합니다.

(다음에서 상속됨 DataGridViewCell)
GetEditedFormattedValue(Int32, DataGridViewDataErrorContexts)

셀이 편집 모드에 있고 값이 커밋되지 않았는지 여부와 관계없이 셀의 형식이 지정된 현재 값을 반환합니다.

(다음에서 상속됨 DataGridViewCell)
GetErrorIconBounds(Graphics, DataGridViewCellStyle, Int32)

셀의 오류 아이콘이 표시되면 이 아이콘을 둘러싸는 경계 사각형을 반환합니다.

GetErrorText(Int32)

셀의 오류를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 DataGridViewCell)
GetFormattedValue(Object, Int32, DataGridViewCellStyle, TypeConverter, TypeConverter, DataGridViewDataErrorContexts)

형식이 지정된 셀 데이터 값을 가져옵니다.

GetHashCode()

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetInheritedContextMenuStrip(Int32)

현재 셀의 상속된 바로 가기 메뉴를 가져옵니다.

(다음에서 상속됨 DataGridViewCell)
GetInheritedState(Int32)

해당 행과 열의 상태에서 상속된 셀의 현재 상태를 나타내는 값을 반환합니다.

(다음에서 상속됨 DataGridViewCell)
GetInheritedStyle(DataGridViewCellStyle, Int32, Boolean)

셀에 적용된 스타일을 가져옵니다.

(다음에서 상속됨 DataGridViewCell)
GetPreferredSize(Graphics, DataGridViewCellStyle, Int32, Size)

셀의 기본 크기를 픽셀 단위로 계산합니다.

GetSize(Int32)

셀의 크기를 가져옵니다.

(다음에서 상속됨 DataGridViewCell)
GetType()

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
GetValue(Int32)

셀의 값을 가져옵니다.

(다음에서 상속됨 DataGridViewCell)
InitializeEditingControl(Int32, Object, DataGridViewCellStyle)

호스팅된 편집 컨트롤을 연결하고 초기화합니다.

KeyDownUnsharesRow(KeyEventArgs, Int32)

포커스가 셀에 있는 동안 키를 누르는 경우 부모 행을 공유하지 않을 것인지 여부를 나타냅니다.

(다음에서 상속됨 DataGridViewCell)
KeyEntersEditMode(KeyEventArgs)

지정된 키에 따라 편집 모드를 시작할지 여부를 결정합니다.

KeyPressUnsharesRow(KeyPressEventArgs, Int32)

포커스가 행의 셀에 있는 동안 키를 누르는 경우 행을 공유하지 않을 것인지 여부를 나타냅니다.

(다음에서 상속됨 DataGridViewCell)
KeyUpUnsharesRow(KeyEventArgs, Int32)

포커스가 셀에 있는 동안 키를 놓는 경우 부모 행을 공유하지 않을 것인지 여부를 나타냅니다.

(다음에서 상속됨 DataGridViewCell)
LeaveUnsharesRow(Int32, Boolean)

포커스가 행의 셀을 벗어난 경우 행을 공유하지 않을 것인지 여부를 나타냅니다.

(다음에서 상속됨 DataGridViewCell)
MemberwiseClone()

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
MouseClickUnsharesRow(DataGridViewCellMouseEventArgs)

포인터가 행의 셀에 있는 동안 마우스 단추를 클릭하는 경우 행을 공유하지 않을 것인지 여부를 나타냅니다.

(다음에서 상속됨 DataGridViewCell)
MouseDoubleClickUnsharesRow(DataGridViewCellMouseEventArgs)

행의 셀을 두 번 클릭하는 경우 행을 공유하지 않을 것인지 여부를 나타냅니다.

(다음에서 상속됨 DataGridViewCell)
MouseDownUnsharesRow(DataGridViewCellMouseEventArgs)

포인터가 행의 셀에 있는 동안 마우스 단추를 누르고 있는 경우 행을 공유하지 않을 것인지 여부를 나타냅니다.

(다음에서 상속됨 DataGridViewCell)
MouseEnterUnsharesRow(Int32)

마우스 포인터가 행의 셀 위로 이동할 경우 행을 공유하지 않을 것인지 여부를 나타냅니다.

(다음에서 상속됨 DataGridViewCell)
MouseLeaveUnsharesRow(Int32)

마우스 포인터가 행을 벗어난 경우 행을 공유하지 않을 것인지 여부를 나타냅니다.

(다음에서 상속됨 DataGridViewCell)
MouseMoveUnsharesRow(DataGridViewCellMouseEventArgs)

마우스 포인터가 행의 셀 위로 이동할 경우 행을 공유하지 않을 것인지 여부를 나타냅니다.

(다음에서 상속됨 DataGridViewCell)
MouseUpUnsharesRow(DataGridViewCellMouseEventArgs)

포인터가 행의 셀에 있는 동안 마우스 단추를 놓는 경우 행을 공유하지 않을 것인지 여부를 나타냅니다.

(다음에서 상속됨 DataGridViewCell)
OnClick(DataGridViewCellEventArgs)

셀을 클릭하면 호출됩니다.

(다음에서 상속됨 DataGridViewCell)
OnContentClick(DataGridViewCellEventArgs)

셀의 내용을 클릭하면 호출됩니다.

(다음에서 상속됨 DataGridViewCell)
OnContentDoubleClick(DataGridViewCellEventArgs)

셀의 내용을 두 번 클릭하면 호출됩니다.

(다음에서 상속됨 DataGridViewCell)
OnDataGridViewChanged()

셀의 DataGridView 속성이 변경되면 호출됩니다.

OnDoubleClick(DataGridViewCellEventArgs)

셀을 두 번 클릭하면 호출됩니다.

(다음에서 상속됨 DataGridViewCell)
OnEnter(Int32, Boolean)

포커스가 셀로 이동하면 호출됩니다.

OnKeyDown(KeyEventArgs, Int32)

셀에 포커스가 있는 동안 문자 키를 누르면 호출됩니다.

(다음에서 상속됨 DataGridViewCell)
OnKeyPress(KeyPressEventArgs, Int32)

포커스가 셀에 있는 동안 키를 누르면 호출됩니다.

(다음에서 상속됨 DataGridViewCell)
OnKeyUp(KeyEventArgs, Int32)

포커스가 셀에 있는 동안 문자 키를 놓으면 호출됩니다.

(다음에서 상속됨 DataGridViewCell)
OnLeave(Int32, Boolean)

포커스가 셀에서 이동하면 호출됩니다.

OnMouseClick(DataGridViewCellMouseEventArgs)

포인터가 셀에 있는 동안 마우스 단추를 클릭하면 호출됩니다.

OnMouseDoubleClick(DataGridViewCellMouseEventArgs)

포인터가 셀에 있는 동안 마우스 단추를 두 번 클릭하면 호출됩니다.

(다음에서 상속됨 DataGridViewCell)
OnMouseDown(DataGridViewCellMouseEventArgs)

포인터가 셀에 있는 동안 마우스 단추를 누르고 있으면 호출됩니다.

(다음에서 상속됨 DataGridViewCell)
OnMouseEnter(Int32)

마우스 포인터가 셀 위로 이동하면 호출됩니다.

OnMouseLeave(Int32)

마우스 포인터가 셀을 벗어나면 호출됩니다.

OnMouseMove(DataGridViewCellMouseEventArgs)

마우스 포인터가 셀 안에서 이동하면 호출됩니다.

OnMouseUp(DataGridViewCellMouseEventArgs)

포인터가 셀에 있는 동안 마우스 단추를 놓으면 호출됩니다.

(다음에서 상속됨 DataGridViewCell)
Paint(Graphics, Rectangle, Rectangle, Int32, DataGridViewElementStates, Object, Object, String, DataGridViewCellStyle, DataGridViewAdvancedBorderStyle, DataGridViewPaintParts)

현재 DataGridViewComboBoxCell을 그립니다.

PaintBorder(Graphics, Rectangle, Rectangle, DataGridViewCellStyle, DataGridViewAdvancedBorderStyle)

현재 DataGridViewCell의 테두리를 그립니다.

(다음에서 상속됨 DataGridViewCell)
PaintErrorIcon(Graphics, Rectangle, Rectangle, String)

현재 DataGridViewCell의 오류 아이콘을 그립니다.

(다음에서 상속됨 DataGridViewCell)
ParseFormattedValue(Object, DataGridViewCellStyle, TypeConverter, TypeConverter)

형식이 지정된 표시 값을 실제 셀 값으로 변환합니다.

PositionEditingControl(Boolean, Boolean, Rectangle, Rectangle, DataGridViewCellStyle, Boolean, Boolean, Boolean, Boolean)

DataGridView 컨트롤의 셀에서 호스팅하는 편집 컨트롤의 위치와 크기를 설정합니다.

(다음에서 상속됨 DataGridViewCell)
PositionEditingPanel(Rectangle, Rectangle, DataGridViewCellStyle, Boolean, Boolean, Boolean, Boolean)

셀에서 호스팅하는 편집 패널의 위치와 크기를 설정하고 편집 패널에 있는 편집 컨트롤의 일반 범위를 반환합니다.

(다음에서 상속됨 DataGridViewCell)
RaiseCellClick(DataGridViewCellEventArgs)

CellClick 이벤트를 발생시킵니다.

(다음에서 상속됨 DataGridViewElement)
RaiseCellContentClick(DataGridViewCellEventArgs)

CellContentClick 이벤트를 발생시킵니다.

(다음에서 상속됨 DataGridViewElement)
RaiseCellContentDoubleClick(DataGridViewCellEventArgs)

CellContentDoubleClick 이벤트를 발생시킵니다.

(다음에서 상속됨 DataGridViewElement)
RaiseCellValueChanged(DataGridViewCellEventArgs)

CellValueChanged 이벤트를 발생시킵니다.

(다음에서 상속됨 DataGridViewElement)
RaiseDataError(DataGridViewDataErrorEventArgs)

DataError 이벤트를 발생시킵니다.

(다음에서 상속됨 DataGridViewElement)
RaiseMouseWheel(MouseEventArgs)

MouseWheel 이벤트를 발생시킵니다.

(다음에서 상속됨 DataGridViewElement)
SetValue(Int32, Object)

셀의 값을 설정합니다.

(다음에서 상속됨 DataGridViewCell)
ToString()

현재 개체를 설명하는 문자열을 반환합니다.

적용 대상

추가 정보