Last Updated: 29 Jan 2020 13:56 by ADMIN
Created on: 27 Jan 2020 16:27
Category: DataGrid
Type: Feature Request
Styles support for DataGridColumns
Currently, Datagrid Columns do not have a Style property. This makes setting the style for multiple data grid columns cumbersome since the styles must be set on each column. If DataGridColumn could extend NavigableElement or have a bindable style property then the following XAML could be used to set the column styles on an entire table.

<Style TargetType="telerikGrid:DataGridColumn">
        <Setter Property="HeaderStyle">
            <telerikGrid:DataGridColumnHeaderStyle TextFontSize="11" TextFontAttributes="Bold" BorderThickness="1" BorderColor="LightGray"/>
        <Setter Property="CellContentStyle">
            <telerikGrid:DataGridTextCellStyle FontSize="10"/>

1 comment
Posted on: 29 Jan 2020 13:56

Hi Chris,

Thank you for sending the suggestion. 

We discussed it and the option to extend NavigableElement wouldn't be applicable for DataGrid columns - in short, NavigableElement contains other properties/methods that are not suitable for column object.

On the other hand, I agree that providing a way to set the styles to the DataGrid columns at one place would be a valuable feature, so I've updated the status of the feedback request to "Unplanned".  We're going to keep an eye on the request and will track the demand.

I've updated your points for your involvement.

I remain at your disposal for any additional questions that might pop up.

Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items