SfDataGrid displays the column header in GridHeaderCellControl that displays the column Header Text, filter icon and sort icon when you sort the column. You can apply the custom style for GridHeaderCellControl by using HeaderStyle property. You can change the header cell Background and Foreground for specific column or an entire Grid by using HeaderStyle property. Following code example illustrates the custom header style applied for GridHeaderCellControl present in the Grid. XAML The following screenshot displays the column header with customized column header style. Figure 1: Column header with customized column header style The following code example illustrates the custom header style applied for specific column Header. XAML The following screenshot displays the customized HeaderStyle for specific column. Figure 2: Customized HeaderStyle for specific column
Sample Links:
|
This page will automatically be redirected to the sign-in page in 10 seconds.