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.

How do I add a reference to the GridTableCellStyleInfo class?

Thread ID:

Created:

Updated:

Platform:

Replies:

33564 Aug 23,2005 12:21 AM Aug 23,2005 02:58 AM Windows Forms 3
loading
Tags: GridControl
Atith Pagdi
Asked On August 23, 2005 12:21 AM

GridTableCellStyleInfo

Administrator [Syncfusion]
Replied On August 23, 2005 12:53 AM

Hi You can add reference to the GridTableCellStyleInfo class using "Syncfusion.Windows.Forms.Grid.Grouping" assembly reference. Regards Mouli.

Atith Pagdi
Replied On August 23, 2005 01:58 AM

Thanks! That worked fine. Also, I''m trying the following code to disable make one of the column headers invisible in the PrepareViewStyleInfo event handler of the GDBD. GridTableCellStyleInfo style = e.TableControl.Model[e.Inner.RowIndex, e.Inner.ColIndex]; if(style.TableCellIdentity.TableCellType == GridTableCellType.ColumnHeaderCell) { if(style.TableCellIdentity.Column != null && style.TableCellIdentity.Column.Name == "Product") e.Inner.Cancel = true; } However, I''m unable to access the e.Inner property of the event arg. Can you tell me what I''m doing wrong here? It''s really quite irritating. Thanks >Hi > >You can add reference to the > >GridTableCellStyleInfo class using > >"Syncfusion.Windows.Forms.Grid.Grouping" > >assembly reference. > >Regards >Mouli. > > >

Administrator [Syncfusion]
Replied On August 23, 2005 02:58 AM

Hi If your intension is to make the particular column header invisible , you can try the following code in the PrepareViewStyleInfo() event. if(e.ColIndex >= 1 && e.Style.CellType == GridTableCellType.ColumnHeaderCell.ToString()) { if(this.gridDataBoundGrid1.Model.NameToColIndex("Product") == e.ColIndex) e.Style.CellType = GridTableCellType.None.ToString(); } Regards Mouli.

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.

;