DataGridViewCellStateChangedEventArgs Class       
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides data for the CellStateChanged event.
public ref class DataGridViewCellStateChangedEventArgs : EventArgs
	public class DataGridViewCellStateChangedEventArgs : EventArgs
	type DataGridViewCellStateChangedEventArgs = class
    inherit EventArgs
	Public Class DataGridViewCellStateChangedEventArgs
Inherits EventArgs
		- Inheritance
 
Examples
The following code example illustrates the use of this 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");
}
Private Sub dataGridView1_CellStateChanged(ByVal sender As Object, _
    ByVal e As DataGridViewCellStateChangedEventArgs) _
    Handles dataGridView1.CellStateChanged
    Dim state As DataGridViewElementStates = e.StateChanged
    Dim msg As String = String.Format( _
        "Row {0}, Column {1}, {2}", _
        e.Cell.RowIndex, e.Cell.ColumnIndex, e.StateChanged)
    MessageBox.Show(msg, "Cell State Changed")
End Sub
	Remarks
Use the Cell property to determine which cell changed. Use the StateChanged property to determine which cell state changed.
For more information about how to handle events, see Handling and Raising Events.
Constructors
| DataGridViewCellStateChangedEventArgs(DataGridViewCell, DataGridViewElementStates) | 
		 Initializes a new instance of the DataGridViewCellStateChangedEventArgs class.  | 
        	
Properties
| Cell | 
		 Gets the DataGridViewCell that has a changed state.  | 
        	
| StateChanged | 
		 Gets the state that has changed on the cell.  | 
        	
Methods
| Equals(Object) | 
		 Determines whether the specified object is equal to the current object. (Inherited from Object) | 
        	
| GetHashCode() | 
		 Serves as the default hash function. (Inherited from Object) | 
        	
| GetType() | 
		 Gets the Type of the current instance. (Inherited from Object) | 
        	
| MemberwiseClone() | 
		 Creates a shallow copy of the current Object. (Inherited from Object) | 
        	
| ToString() | 
		 Returns a string that represents the current object. (Inherited from Object) |