We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

image on column and row header of datagrid

Thread ID:

Created:

Updated:

Platform:

Replies:

11949 Mar 18,2004 11:38 AM Apr 19,2004 08:01 AM Windows Forms 3
loading
Tags: GridControl
Rajesh Venkataraman
Asked On March 18, 2004 11:38 AM

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,

Administrator [Syncfusion]
Replied On March 18, 2004 12:36 PM

You can add a 3d effect by setting the style.CellAppearance property for the header cell.

Mark
Replied On April 19, 2004 02:39 AM

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, > >

Administrator [Syncfusion]
Replied On April 19, 2004 08:01 AM

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.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;