This page provides an example of implementing so called "Inline button" i.e. a button that immediately changes the value in the database. Click "Change" to make an inactive product active and vice versa.

To implement such a button, it is necessary to provide some event handlers. Technical details are as follows (click a link below to see the appropriate code):

- OnCustomRenderColumn event handler code. Here the button is drawn.
- OnPreparePage event handler code. Here parameters are handled and the query is executed.
- OnAfterPageLoad event handler code. Here the button click is handled and an AJAX call is issued.