Unplanned
Last Updated: 11 Oct 2022 11:31 by ADMIN
João
Created on: 11 Oct 2022 11:29
Category: GridView
Type: Feature Request
1
RadGridView: GridViewCellInfo.Style property should work for the header cells as well

GridViewCellInfo offers Style property which allows you to customize the style for the cells defined at the data cell's level: https://docs.telerik.com/devtools/winforms/controls/gridview/cells/formating-examples/style-property

This functionality should work for the header cells as well like this:

            GridViewCellInfo cell = this.radGridView1.MasterView.TableHeaderRow.Cells[0];
            cell.Style.CustomizeFill = true;
            cell.Style.GradientStyle = GradientStyles.Solid;
            cell.Style.BackColor = System.Drawing.Color.FromArgb(162, 215, 255);

 

1 comment
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 11 Oct 2022 11:31

Hello, João,

Currently, the possible solution to style the header cells is to use the ViewCellFormatting event:

https://docs.telerik.com/devtools/winforms/controls/gridview/cells/formatting-cells#formatting-non-data-cells 

 

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.