or
| if (this.rgFacturas.SelectedItems.Count > 0) |
| { |
| GridGroupByExpressionCollection Coll = this.rgFacturas.MasterTableView.GroupByExpressions; |
| this.rgFacturas.MasterTableView.GroupByExpressions.Clear(); |
| foreach (GridDataItem item in this.rgFacturas.MasterTableView.Items) |
| { |
| item.Visible = item.Selected; |
| } |
| this.rgFacturas.Rebind(); |
| this.rgFacturas.ExportSettings.ExportOnlyData = true; |
| this.rgFacturas.ExportSettings.OpenInNewWindow = true; |
| this.rgFacturas.MasterTableView.ExportToExcel(); |
| this.rgFacturas.MasterTableView.GroupByExpressions.AddRange(Coll); |
| this.rgFacturas.Rebind(); |
| } |