DataGridView.RowMinimumHeightChanged Událost

Definice

Nastane, když se změní hodnota MinimumHeight vlastnosti pro řádek.

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 

Event Type

Příklady

Následující příklad kódu ukazuje použití tohoto člena. V tomto příkladu obslužná rutina události hlásí výskyt RowMinimumHeightChanged události. Tato sestava vám pomůže zjistit, kdy k události dojde, a může vám pomoct při ladění. Chcete-li hlásit více událostí nebo událostí, ke kterým dochází často, zvažte nahrazení MessageBox.ShowConsole.WriteLine nebo připojení zprávy do víceřádkového řetězce TextBox.

Pokud chcete spustit ukázkový kód, vložte ho do projektu, který obsahuje instanci typu DataGridView s názvem DataGridView1. Potom se ujistěte, že je obslužná rutina události přidružená k RowMinimumHeightChanged události.

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

Poznámky

Další informace o zpracování událostí naleznete v tématu Zpracování a vyvolávání událostí.

Platí pro

Viz také