DataGridView.UpdateRowHeightInfo(Int32, Boolean) Méthode
Définition
Force la ou les lignes spécifiées à mettre à jour leurs informations de hauteur.Forces the specified row or rows to update their height information.
public:
void UpdateRowHeightInfo(int rowIndex, bool updateToEnd);
public void UpdateRowHeightInfo (int rowIndex, bool updateToEnd);
member this.UpdateRowHeightInfo : int * bool -> unit
Public Sub UpdateRowHeightInfo (rowIndex As Integer, updateToEnd As Boolean)
Paramètres
- rowIndex
- Int32
Index de base zéro de la première ligne à mettre à jour.The zero-based index of the first row to update.
- updateToEnd
- Boolean
true
pour mettre à jour la ligne spécifiée et toutes les lignes suivantes.true
to update the specified row and all subsequent rows.
Exceptions
rowIndex
est inférieur à 0 et updateToEnd
est true
.rowIndex
is less than 0 and updateToEnd
is true
.
- ou --or-
rowIndex
est inférieur à -1 et updateToEnd
est false
.rowIndex
is less than -1 and updateToEnd
is false
.
- ou --or-
rowIndex
est supérieur à l’index de ligne le plus élevé dans la collection Rows.rowIndex
is greater than the highest row index in the Rows collection.
Remarques
Cette méthode est utile lorsque vous gérez vous-même les hauteurs de lignes à l’aide de gestionnaires pour les événements RowHeightInfoNeeded et RowHeightInfoPushed.This method is useful when you maintain row heights yourself using handlers for the RowHeightInfoNeeded and RowHeightInfoPushed events. Appelez cette méthode chaque fois que vous modifiez les hauteurs de lignes stockées en dehors d’un gestionnaire d’événements RowHeightInfoPushed.Call this method whenever you change the stored row heights outside of a RowHeightInfoPushed event handler. Cela force le contrôle DataGridView à récupérer les informations de hauteur mises à jour par le biais du gestionnaire d’événements RowHeightInfoNeeded.This will force the DataGridView control to retrieve the updated height information through the RowHeightInfoNeeded event handler.