The Selected event occurs exactly after data has been selected from the database and before any processing of it has been started. This event can be used for initial processing of raw data before it will be converted into data items collection.
connector.Selected += new EventHandler<DataSelectedEventArgs>(connector_Selected);
void connector_Selected(object sender, DataSelectedEventArgs e)
{
foreach (System.Data.DataRow row in e.Data)
this.DoSomeAction(row);
}
DataSelectedEventArgs object that is passed to the event handler contains 2 important properties:
Another way of data processing before it will be returned to the client is handling ItemPrerender event and performing different tasks on each data item before it goes to the client.
Back to top