0

我正在使用 infragistices 网格开发 wpf 应用程序。我搜索了 infragistics 论坛,谷歌搜索并没有找到任何东西,我确实发现 devExpress 网格确实支持这一点,但找不到类似的解决方案 infragistics 对应

我正在尝试查看是否有一种方法可以使摘要仅在用户选择行时才起作用?如果有人尝试过任何这样的条件汇总计算,我们将不胜感激。

4

1 回答 1

1

如果您的网格在变量dataGrid中,则此 LINQ 应该可以工作

    /// <summary>
    /// Gets a readonly list of the filtered selected records.
    /// </summary>
    public IList<DataRecord> SelectedRecords
    {
        get
        {
            return dataGrid.Records.Cast<DataRecord>().Where(r => r.IsFilteredOut != true && r.IsSelected && !r.IsDeleted).ToList().AsReadOnly();
        }
    }
于 2012-10-09T21:52:23.787 回答