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.
Syncfusion Feedback

image on column and row header of datagrid

Thread ID:

Created:

Updated:

Platform:

Replies:

11949 Mar 18,2004 04:38 PM UTC Apr 19,2004 12:01 PM UTC Windows Forms 3
loading
Tags: GridControl
Rajesh Venkataraman
Asked On March 18, 2004 04:38 PM UTC

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 05:36 PM UTC

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

Mark
Replied On April 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, > >

Administrator [Syncfusion]
Replied On 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.

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.

Warning Icon 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.Close Icon

;