using Infragistics.Windows;
using Infragistics.Windows.Controls;
using Infragistics.Windows.Editors;
using Infragistics.Windows.DataPresenter;
using Infragistics.Windows.DataPresenter.Events;
'宣言
Public ReadOnly Property IsFilterRecord As Boolean
<igDP:XamDataGrid.Resources> <!--Create a style that targets DataRecordCellArea.--> <Stylex:Key="{x:Type igDP:DataRecordCellArea}"TargetType="{x:Type igDP:DataRecordCellArea}"> <Style.Triggers> <!--Add a trigger that highlights filter record as light-blue.--> <TriggerProperty="IsFilterRecord"Value="true"> <SetterProperty="Background"Value="LightBlue"/> </Trigger> </Style.Triggers> </Style> </igDP:XamDataGrid.Resources>
<igDP:XamDataGrid.FieldSettings> <!--Set AllowRecordFiltering to true to display the filter record.--> <igDP:FieldSettingsAllowRecordFiltering="true"/> </igDP:XamDataGrid.FieldSettings>
</igDP:XamDataGrid>
'宣言
Public ReadOnly Property IsFilterRecord As Boolean