Hi,
Regrettably,
Selected columns property does not accept DISTINCT parameter. I would recommend you consider creating your own query that would return only non-duplicated bookingsEvents. You could use
ExecuteQuery method to execute the query and returned dataset may be used as a
DataSource property of
CMSDataGrid control
GeneralConnection conn = ConnectionHelper.GetConnection();
DataSet set = null;
set = conn.ExecuteQuery("cms.BookingEvent.customquery", parameters);
CMSDataGrid.DataSource = set;
CMSDataGrid.DataBind();More information about Kentico API can be found in
API referenceBest regards,
Michal Legen