FilterDropDownButtonImage を使用して、アクティブ フィルターを持たないヘッダーの画像を設定します。ActiveFilterDropDownButtonImage は、効果があるフィルターを持つヘッダーで使用されます。
Imports Infragistics.Shared Imports Infragistics.Win Imports Infragistics.Win.UltraWinGrid Private Sub Button17_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button17.Click ' Enable row filtering and row summaries features Me.ultraGrid1.DisplayLayout.Override.AllowRowFiltering = DefaultableBoolean.True Me.ultraGrid1.DisplayLayout.Override.AllowRowSummaries = AllowRowSummaries.BasedOnDataType ' Set the normal filter icon and the active filter icon which is what gets displayed ' when there are active filters for that column. Me.ultraGrid1.DisplayLayout.FilterDropDownButtonImage = Image.FromFile("d:\Filter Icon File.bmp") Me.ultraGrid1.DisplayLayout.FilterDropDownButtonImageActive = Image.FromFile("d:\Active Filter Icon File.bmp") ' Set the icon for summary rows icon. Me.ultraGrid1.DisplayLayout.SummaryButtonImage = Image.FromFile("d:\Summary Icon File.bmp") End Sub
using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinGrid; using System.Diagnostics; private void button17_Click(object sender, System.EventArgs e) { // Enable row filtering and row summaries features this.ultraGrid1.DisplayLayout.Override.AllowRowFiltering = DefaultableBoolean.True; this.ultraGrid1.DisplayLayout.Override.AllowRowSummaries = AllowRowSummaries.BasedOnDataType; // Set the normal filter icon and the active filter icon which is what gets displayed // when there are active filters for that column. this.ultraGrid1.DisplayLayout.FilterDropDownButtonImage = Image.FromFile( "d:\\Filter Icon File.bmp" ); this.ultraGrid1.DisplayLayout.FilterDropDownButtonImageActive = Image.FromFile( "d:\\Active Filter Icon File.bmp" ); // Set the icon for summary rows icon. this.ultraGrid1.DisplayLayout.SummaryButtonImage = Image.FromFile( "d:\\Summary Icon File.bmp" ); }