Check documentation for the latest version of dhtmlxSuite Selected DHTMLX Docs


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)

DataSelectedEventArgs object that is passed to the event handler contains 2 important properties:

  • Data - DataTable of the selected results
  • TotalRowsCount - number of all rows available for selection. In case of dynamic loading, this number will be higher that actual number of rows in Data table.

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