DataGridView.RowMinimumHeightChanged Olay

Tanım

Bir satır için özelliğin değeri değiştiğinde MinimumHeight gerçekleşir.

public:
 event System::Windows::Forms::DataGridViewRowEventHandler ^ RowMinimumHeightChanged;
public event System.Windows.Forms.DataGridViewRowEventHandler RowMinimumHeightChanged;
public event System.Windows.Forms.DataGridViewRowEventHandler? RowMinimumHeightChanged;
member this.RowMinimumHeightChanged : System.Windows.Forms.DataGridViewRowEventHandler 
Public Custom Event RowMinimumHeightChanged As DataGridViewRowEventHandler 

Olay Türü

Örnekler

Aşağıdaki kod örneğinde bu üyenin kullanımı gösterilmektedir. Örnekte, olay işleyicisi olayın oluşumunu RowMinimumHeightChanged bildirir. Bu rapor, olayın ne zaman gerçekleştiğini öğrenmenize yardımcı olur ve hata ayıklamada size yardımcı olabilir. Birden çok olayı veya sık gerçekleşen olayları raporlamak için, iletisini ile MessageBox.Show değiştirmeyi Console.WriteLine veya çok satırlı TextBoxbir iletiye eklemeyi göz önünde bulundurun.

Örnek kodu çalıştırmak için, adlı DataGridViewtürünün DataGridView1 bir örneğini içeren bir projeye yapıştırın. Ardından olay işleyicisinin olayla ilişkilendirildiğinden RowMinimumHeightChanged emin olun.

private void DataGridView1_RowMinimumHeightChanged(Object sender, DataGridViewRowEventArgs e) {

System.Text.StringBuilder messageBoxCS = new System.Text.StringBuilder();
messageBoxCS.AppendFormat("{0} = {1}", "Row", e.Row );
messageBoxCS.AppendLine();
MessageBox.Show(messageBoxCS.ToString(), "RowMinimumHeightChanged Event" );
}
Private Sub DataGridView1_RowMinimumHeightChanged(sender as Object, e as DataGridViewRowEventArgs) _ 
     Handles DataGridView1.RowMinimumHeightChanged

    Dim messageBoxVB as New System.Text.StringBuilder()
    messageBoxVB.AppendFormat("{0} = {1}", "Row", e.Row)
    messageBoxVB.AppendLine()
    MessageBox.Show(messageBoxVB.ToString(),"RowMinimumHeightChanged Event")

End Sub

Açıklamalar

Olayları işleme hakkında daha fazla bilgi için bkz. Olayları İşleme ve Oluşturma.

Şunlara uygulanır

Ayrıca bkz.