protected void rgIncidents_NeedDataSource(object sender, GridNeedDataSourceEventArgs e) { var ehsIncidents = (ShowClosedIncidents) ? EHSIncidentMgr.SelectIncidents(companyId, plantIdList) : EHSIncidentMgr.SelectOpenIncidents(companyId, plantIdList); rgIncidents.DataSource = ehsIncidents; }