如何使用 Linq 表达式在 Telerik Radgridview 中查找隐藏列
How to find hidden columns in Telerik Radgridview using Linq expression
如何从 Telerik 中找到不可见的列 Radgridview.I 已尝试使用以下表达式
RadGridView radGridView = dependencyObject as RadGridView;
var columns = radGridView.Columns.Where(x => x.IsVisible == false);
我遇到了以下异常
Error 1 'Telerik.Windows.Controls.GridViewColumnCollection' does not
contain a definition for 'Where' and the best extension method
overload
'Telerik.Windows.Data.QueryableExtensions.Where(System.Linq.IQueryable,
Telerik.Windows.Data.FilterDescriptorCollection)' has some invalid
arguments
谁能帮忙解决这个问题
var columns = new List<Telerik.Windows.Controls.GridViewColumn>(gridView.Columns);
var filteredList = columns.Where(o => o.IsVisible == false);
干杯
如何从 Telerik 中找到不可见的列 Radgridview.I 已尝试使用以下表达式
RadGridView radGridView = dependencyObject as RadGridView;
var columns = radGridView.Columns.Where(x => x.IsVisible == false);
我遇到了以下异常
Error 1 'Telerik.Windows.Controls.GridViewColumnCollection' does not contain a definition for 'Where' and the best extension method overload 'Telerik.Windows.Data.QueryableExtensions.Where(System.Linq.IQueryable, Telerik.Windows.Data.FilterDescriptorCollection)' has some invalid arguments
谁能帮忙解决这个问题
var columns = new List<Telerik.Windows.Controls.GridViewColumn>(gridView.Columns);
var filteredList = columns.Where(o => o.IsVisible == false);
干杯