### Data Set Observer Sample

This page demonstrates the 2 different ways to register an observer on the data set. The first way involves creating an object that will receive notifications. Methods are added to this object for each notification it wishes to receive. The object is then added as an observer on the data set.

The second way involves defining a callback function and registering it as an observer on the data set. The difference with using a callback function is that it will get called for *every* notification the data set dispatches. The function must check the notification type passed into it to see if it is a notification it is interested in handling.

{firstname} {lastname}, {firstname} {lastname}

ds_RowID | Last Name | First Name
--- | --- | ---
{ds_RowID} | {lastname} | {firstname}