DataGridBoolColumn.AllowNullChanged Olay
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Özelliği değiştirildiğinde AllowNull gerçekleşir.
public:
event EventHandler ^ AllowNullChanged;
public event EventHandler AllowNullChanged;
member this.AllowNullChanged : EventHandler
Public Custom Event AllowNullChanged As EventHandler
Olay Türü
Örnekler
Aşağıdaki kod örneğinde bu üyenin kullanımı gösterilmektedir.
void RegisterEventHandlers( DataGridBoolColumn^ myDataGridBoolColumn )
{
myDataGridBoolColumn->AllowNullChanged += gcnew System::EventHandler( this, &MyForm::myDataGridBoolColumn_AllowNullChanged );
myDataGridBoolColumn->TrueValueChanged += gcnew System::EventHandler( this, &MyForm::myDataGridBoolColumn_TrueValueChanged );
myDataGridBoolColumn->FalseValueChanged += gcnew System::EventHandler( this, &MyForm::myDataGridBoolColumn_FalseValueChanged );
}
// Event handler for event when 'TrueValue' is property changed.
void myDataGridBoolColumn_TrueValueChanged( Object^ /*sender*/, EventArgs^ /*e*/ )
{
MessageBox::Show( String::Concat( "The TrueValue property of the DataGridBoolColumn has been changed to ", myDataGridBoolColumn->TrueValue ) );
}
// Event handler for event when 'FalseValue' is property changed.
void myDataGridBoolColumn_FalseValueChanged( Object^ /*sender*/, EventArgs^ /*e*/ )
{
MessageBox::Show( String::Concat( "The FalseValue property of the DataGridBoolColumn has been changed to ", myDataGridBoolColumn->FalseValue ) );
}
// Event handler for event when 'AllowNull' is property changed.
void myDataGridBoolColumn_AllowNullChanged( Object^ /*sender*/, EventArgs^ /*e*/ )
{
MessageBox::Show( String::Concat( "The AllowNull property of DataGridBoolColumn has been changed to ", myDataGridBoolColumn->AllowNull ) );
}
private void RegisterEventHandlers(DataGridBoolColumn myDataGridBoolColumn)
{
myDataGridBoolColumn.AllowNullChanged +=
new System.EventHandler(myDataGridBoolColumn_AllowNullChanged);
myDataGridBoolColumn.TrueValueChanged +=
new System.EventHandler(myDataGridBoolColumn_TrueValueChanged);
myDataGridBoolColumn.FalseValueChanged +=
new System.EventHandler(myDataGridBoolColumn_FalseValueChanged);
}
// Event handler for event when 'TrueValue' is property changed.
private void myDataGridBoolColumn_TrueValueChanged(object sender, EventArgs e)
{
MessageBox.Show("The TrueValue property of the DataGridBoolColumn has been changed to "
+ myDataGridBoolColumn.TrueValue);
}
// Event handler for event when 'FalseValue' is property changed.
private void myDataGridBoolColumn_FalseValueChanged(object sender, EventArgs e)
{
MessageBox.Show("The FalseValue property of the DataGridBoolColumn has been changed to "
+ myDataGridBoolColumn.FalseValue);
}
// Event handler for event when 'AllowNull' is property changed.
private void myDataGridBoolColumn_AllowNullChanged(object sender, EventArgs e)
{
MessageBox.Show("The AllowNull property of DataGridBoolColumn has been changed to "
+ myDataGridBoolColumn.AllowNull);
}
Private Sub RegisterEventHandlers(myDataGridBoolColumn As DataGridBoolColumn)
AddHandler myDataGridBoolColumn.AllowNullChanged, _
AddressOf myDataGridBoolColumn_AllowNullChanged
AddHandler myDataGridBoolColumn.TrueValueChanged, _
AddressOf myDataGridBoolColumn_TrueValueChanged
AddHandler myDataGridBoolColumn.FalseValueChanged, _
AddressOf myDataGridBoolColumn_FalseValueChanged
End Sub
' Event handler for event when 'TrueValue' is property changed.
Private Sub myDataGridBoolColumn_TrueValueChanged(sender As Object, e As EventArgs)
MessageBox.Show("The TrueValue property of the DataGridBoolColumn has been changed to " _
& myDataGridBoolColumn.TrueValue)
End Sub
' Event handler for event when 'FalseValue' is property changed.
Private Sub myDataGridBoolColumn_FalseValueChanged(sender As Object, e As EventArgs)
MessageBox.Show("The FalseValue property of the DataGridBoolColumn has been changed to " _
& myDataGridBoolColumn.FalseValue)
End Sub
' Event handler for event when 'AllowNull' is property changed.
Private Sub myDataGridBoolColumn_AllowNullChanged(sender As Object, e As EventArgs)
MessageBox.Show("The AllowNull property of DataGridBoolColumn has been changed to " _
& myDataGridBoolColumn.AllowNull)
End Sub
Şunlara uygulanır
GitHub'da bizimle işbirliği yapın
Bu içeriğin kaynağı GitHub'da bulunabilir; burada ayrıca sorunları ve çekme isteklerini oluşturup gözden geçirebilirsiniz. Daha fazla bilgi için katkıda bulunan kılavuzumuzu inceleyin.