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 need to display an image and text on the row and column headers. However when I do that, I lose the 3d effect and the borders around the header cells. How do I fix this ?
Any help will be appreciated.
Thanks,
ADAdministrator Syncfusion Team March 18, 2004 05:36 PM UTC
You can add a 3d effect by setting the style.CellAppearance property for the header cell.
MAMarkApril 19, 2004 06:39 AM UTC
Hi Raj,
I would like to insert an image on the row header of the datagrid table. Could you help me to do this ?
Thanks
Mark
> Hi,
>
> I need to display an image and text on the row and column headers. However when I do that, I lose the 3d effect and the borders around the header cells. How do I fix this ?
>
> Any help will be appreciated.
>
> Thanks,
>
>
ADAdministrator Syncfusion Team April 19, 2004 12:01 PM UTC
Hi Mark,
You can do this by handling the PrepareViewStyleInfo in a GDBG. Here is some code snippet.
private void gridDataBoundGrid1_PrepareViewStyleInfo(object sender, Syncfusion.Windows.Forms.Grid.GridPrepareViewStyleInfoEventArgs e)
{
if(e.ColIndex == 0 )
{
e.Style.CellType = "Image";
e.Style.CellAppearance = GridCellAppearance.Raised;
if(e.RowIndex == 3)
{
e.Style.ImageList = imageList;
e.Style.ImageIndex = 1;
}
}
}
Regards,
Jay N.