DataGridBoolColumn.FalseValue DataGridBoolColumn.FalseValue DataGridBoolColumn.FalseValue DataGridBoolColumn.FalseValue Property

정의

열의 값을 false로 설정할 때 사용되는 실제 값을 가져오거나 설정합니다.Gets or sets the actual value used when setting the value of the column to false.

public:
 property System::Object ^ FalseValue { System::Object ^ get(); void set(System::Object ^ value); };
[System.ComponentModel.TypeConverter(typeof(System.ComponentModel.StringConverter))]
public object FalseValue { get; set; }
member this.FalseValue : obj with get, set
Public Property FalseValue As Object

속성 값

Object로 형식이 지정된 값입니다.The value, typed as Object.

예제

다음 코드 예제에서는 합니다 TrueValue, FalseValue, 및 NullValue 의 속성을 DataGridBoolColumn입니다.The following code example sets the TrueValue, FalseValue, and NullValue properties of a DataGridBoolColumn.

private:

   void SetBoolColumnValues()
   {
      DataGridBoolColumn^ myGridColumn;
      
      // Get the DataGridBoolColumn you are setting.
      myGridColumn = dynamic_cast<DataGridBoolColumn^>(myDataGrid->TableStyles[ "Customers" ]->GridColumnStyles[ "Current" ]);
      
      // Set TrueValue, FalseValue, and NullValue.
      myGridColumn->TrueValue = true;
      myGridColumn->FalseValue = false;
      myGridColumn->NullValue = Convert::DBNull;
   }

private void SetBoolColumnValues(){
   DataGridBoolColumn myGridColumn;
   // Get the DataGridBoolColumn you are setting.
   myGridColumn = (DataGridBoolColumn) myDataGrid.
   TableStyles["Customers"].GridColumnStyles["Current"];
   // Set TrueValue, FalseValue, and NullValue.
   myGridColumn.TrueValue = true;
   myGridColumn.FalseValue = false;
   myGridColumn.NullValue = Convert.DBNull;
}

 
Private Sub SetBoolColumnValues()
   Dim myGridColumn As DataGridBoolColumn 
   ' Get the DataGridBoolColumn you are setting.
   myGridColumn = CType(myDataGrid.TableStyles _
   ("Customers").GridColumnStyles("Current"), DataGridBoolColumn)
   ' Set TrueValue, FalseValue, and NullValue.
   myGridColumn.TrueValue = true
   myGridColumn.FalseValue = false
   myGridColumn.NullValue = Convert.DBNull
End Sub

설명

합니다 FalseValue, NullValue, 및 TrueValue 속성 데이터 원본에 밀어 넣는 실제 값을 결정 합니다.The FalseValue, NullValue, and TrueValue properties determine the actual values pushed into the data source.

적용 대상