Raised when the value of a grid element's property changes to provide notification that the property has been modified. These events can be used, for example, to update a text box with new information when something on the grid changes.
To subscribe to a PropertyChanged event, for example the GridControl.CurrentRowChanged event, the following steps must be performed:
Obtain a reference to a GridControl object.
Subscribe to the CurrentRowChanged event of the GridControl object using the default delegate class.
Create a new method that will handle the events that are raised.
Place the desired code in the newly created event handler.
To subscribe to a PropertyChanged event, for example the GridControl.CurrentRowChanged event, the following steps must be performed:
Obtain a reference to a GridControl object.
Subscribe to the CurrentRowChanged event of the GridControl object using the AddHandler/AddressOf keywords.
Create a new method that will handle the events that are raised.
Place the desired code in the newly created event handler.
This example assumes that you are in a Windows application.
VB.NET | Copy Code |
---|---|
|
C# | Copy Code |
---|---|
|
The PropertyChanged events are not raised when the value of a parent's property changes.