Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ListView::PagePropertiesChanging Event

 

Occurs when the page properties change, but before the ListView control sets the new values.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

public:
event EventHandler<PagePropertiesChangingEventArgs^>^ PagePropertiesChanging {
	void add(EventHandler<PagePropertiesChangingEventArgs^>^ value);
	void remove(EventHandler<PagePropertiesChangingEventArgs^>^ value);
}

The PagePropertiesChanging event is raised when the page properties change, but before the ListView control sets the new values by using the SetPageProperties method. This enables you to perform a custom routine whenever this event occurs, such as clearing the SelectedIndex or EditIndex properties.

A PagePropertiesChangingEventArgs object is passed to the event handler, which enables you to determine the index of the first record displayed on the page. It also lets you determine the maximum number of items to display on a single page.

For more information about how to handle events, see NIB: Consuming Events.

The following example shows how create an event handler for the PagePropertiesChanging event.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.5
Return to top
Show:
© 2017 Microsoft