The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I have two data views of the same data. One is in a SyncFusion GridDataBoundGrid, the other is an owner drawn form. When the user selects something on the owner drawn form, I want to change the background color of the column header to show which column(s) they have selected. How can I do this?
Most of the BackColor work I am doing is in the PrepareViewStyleInfo() event, but that event is not called. I need something which is explicit.
Tx,
curt
ADAdministrator Syncfusion Team March 21, 2003 12:11 AM UTC
You can force PrepareViewStyleInfo to be called by calling GridDataBoundGrid.RefreshRange.
this.gridDataBoundGrid1.RefreshRange(GridRangeInfo.Cell(0,2)); //redraw col header 2
So if you want a header to be colored, set some flag (or something else that you can test in PrepareViewStyleInfo), and then call RefreshRange.