DataGridViewCellStateChangedEventArgs, classe
Assembly : System.Windows.Forms (dans system.windows.forms.dll)
Utilisez la propriété Cell pour déterminer quelle cellule a été modifiée. Utilisez la propriété StateChanged pour déterminer quel état de cellule a été modifié.
Pour plus d'informations sur la gestion des événements, consultez Consommation d'événements.
L'exemple de code suivant illustre l'utilisation de ce type.
private void dataGridView1_CellStateChanged(object sender, DataGridViewCellStateChangedEventArgs e) { DataGridViewElementStates state = e.StateChanged; string msg = String.Format("Row {0}, Column {1}, {2}", e.Cell.RowIndex, e.Cell.ColumnIndex, e.StateChanged); MessageBox.Show(msg, "Cell State Changed"); }
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile pour Pocket PC, Windows Mobile pour Smartphone, Windows Server 2003, Windows XP Édition Media Center, Windows XP Professionnel Édition x64, Windows XP SP2, Windows XP Starter Edition
Le .NET Framework ne prend pas en charge toutes les versions de chaque plate-forme. Pour obtenir la liste des versions prises en charge, consultez Configuration requise.