2X faster development
The ultimate UWP UI toolkit to boost your development speed.
You can customize the appearance of Filter and Sort icon of SfDataGrid by override the styles of FilterToggleButton and GridHeaderCellControl. And change the appearance of filter popup by override the style of GridFilterControl. Customize the appearance of Sort iconThe appearance of sort indicator can be customized by override the style of GridHeaderCellControl. Under the PART_SortButtonPresenter, you can change its path value to specify expected customized appearance for both Ascending and Descending sort icons. Refer the below code, here the sort icon default color is changed from Gray to Red.
Customize the appearance of Filter iconThe appearance of filter icon can be customized by override the FilterToggleButton style. Refer the below code, here the filter icon default color is changed from Gray to Red and the height of filter icon is changed the default value to 18.
The following screenshot displays the customized Filter and Sort icon of GridHeaderCellControl in SfDataGrid.
Customize the appearance of Filter-PopupYou can customize the appearance of filter popup by overriding the style of GridFilterControl. Under the PART_OkButton and PART_CancelButton, you can change the appearance for both buttons. Refer the below code, here the filter popup button default background color is changed from Transparent to LightBlue and Foreground color is changed from Gray to Red.
Sample: CustomizeFilterandSortIcon |
2X faster development
The ultimate UWP UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.