protected void GetDataSourceInvoices() { var lstRoles = (List <Roles>)Session["CCFNRoles"]; var rolesCSV = ""; lstRoles.ForEach(rol => rolesCSV += (rol.Name + ", ")); rolesCSV = rolesCSV.TrimEnd(',', ' '); RadGrid1.DataSource = GeneralBL.GetLog(txtRFC.Text, txtNombre.Text, txtFolio.Text, cmbActionId.SelectedValue, dteDesde.SelectedDate, dteHasta.SelectedDate); }