我正在使用 Infrgistics XamGrid [InfragisticsWPF4.Controls.Grids.XamGrid.v12.1.dll (12.1.20121.1010)]。我有一种情况,用户无法过滤以仅选择空文本。过滤器在选择非空文本的情况下工作正常,但包括空文本在内的任何组合都会排除空行。例如,在下面提供的示例中,如果用户尝试选择“PTL_D_IMA”和空文本,过滤器的结果结果是只有一行具有“PTL_D_IMA”,而其他两行空文本不会出现。
<ig:XamGrid x:Name="myGrid" ItemsSource="{Binding Source={StaticResource TestDataItems}}">
<ig:XamGrid.FilteringSettings>
<ig:FilteringSettings AllowFiltering="FilterMenu"FilteringScope="ColumnLayout" />
</ig:XamGrid.FilteringSettings>
</ig:XamGrid>
public class TestDataItems
{
private string name;
public string Name
{
get { return name; }
set { name = value; }
}
}
public class TestData : ObservableCollection<TestDataItems>
{
public TestData()
{
Add(new TestDataItems { Name = "PTL_D_IMA"});
Add(new TestDataItems { Name = "PTL_D_PCHCYL"});
Add(new TestDataItems { Name = "PTL_D_ICN"});
Add(new TestDataItems { Name = "PTL_D_PRFI"});
Add(new TestDataItems { Name = "PTL_D_IPH"});
Add(new TestDataItems { Name = ""});
Add(newTestDataItems { Name = string.Empty });
Add(newTestDataItems { Name = "PTL_D_PTCYL"});
Add(new TestDataItems { Name = "PCGM"});
Add(new TestDataItems { Name = "COD_SUS"});
}
}