回复 2楼Alice的帖子
- DataGridFilterState fs;
- DataGridFilterInfo fsFilter;
- List<DataGridFilterInfo> fsList = new List<DataGridFilterInfo>();
- fsFilter = new DataGridFilterInfo();
- fs = new DataGridFilterState();
- fsFilter.FilterType = DataGridFilterType.Text;
- fsFilter.Value = "前月";
- fsFilter.FilterOperation = DataGridFilterOperation.Equal;
- fsFilter.FilterCombination = DataGridFilterCombination.And;
- fsList.Add(fsFilter);
- fs.FilterInfo = fsList;
- this.c1DataGrid.FilterBy(c1DataGrid.Columns[22], fs);
复制代码
以上是我的代码,执行到最后一行报C1.WPF.DataGrid.DataGridFilterException,There was an error when filtering rows.
说实例属性在我的model类里没有设置,实例属性指什么,具体哪些需要设定在model里? |