DataGridView.ProcessLeftKey(Keys) Méthode
Définition
Traite la touche Gauche.Processes the LEFT ARROW key.
protected:
bool ProcessLeftKey(System::Windows::Forms::Keys keyData);
protected bool ProcessLeftKey (System.Windows.Forms.Keys keyData);
member this.ProcessLeftKey : System.Windows.Forms.Keys -> bool
Protected Function ProcessLeftKey (keyData As Keys) As Boolean
Paramètres
- keyData
- Keys
Combinaison d'opérations de bits de valeurs Keys qui représente la ou les touches à traiter.A bitwise combination of Keys values that represents the key or keys to process.
Retours
true
si la touche a été traitée ; sinon, false
.true
if the key was processed; otherwise, false
.
Exceptions
La flèche GAUCHE provoque l’entrée du contrôle en mode édition, mais la propriété EditType de la nouvelle cellule active n’indique pas une classe qui dérive de Control et implémente IDataGridViewEditingControl.The LEFT ARROW key would cause the control to enter edit mode, but the EditType property of the new current cell does not indicate a class that derives from Control and implements IDataGridViewEditingControl.
Cette opération permet de valider une valeur de cellule ou d’activer le mode édition, mais une erreur dans la source de données bloque l’opération : soit il n’existe aucun gestionnaire pour l’événement DataError, soit le gestionnaire a défini la propriété ThrowException sur true
.This action would commit a cell value or enter edit mode, but an error in the data source prevents the action and either there is no handler for the DataError event or the handler has set the ThrowException property to true
.
Sécurité
SecurityPermission
pour appeler du code non managé.for calling unmanaged code. Valeur de la demande : LinkDemand.Demand value: LinkDemand. Valeur d’autorisation : UnmanagedCodePermission value: UnmanagedCode