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.
Hi,
I am adding (icon)image to grid control header.
I have tried with following code, but it is not working.
Help me.......!
Example Code:
[sfgDeltas = gridControl]
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(HistoryControl));
this.sfgDeltas.ColStyles[1].VerticalAlignment = GridVerticalAlignment.Bottom;;
this.sfgDeltas.ColStyles[1].BackgroundImageMode = GridBackgroundImageMode.CenterImage;
this.sfgDeltas.ColStyles[1].BackgroundImage = (System.Drawing.Image)(resources.GetObject(@"D:\image.ico"));
ADAdministrator Syncfusion Team July 6, 2005 08:34 AM UTC
ColStyles are column styles. They affect the interior cells in a column. They do not affect the column header cell itself. Try code like this:
this.gridControl1[0,someColIndex].BackgroundImage = images.Images[0];
this.gridControl1[0,someColIndex].BackgroundImageMode = GridBackgroundImageMode.CenterImage;