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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How do I add a reference to the GridTableCellStyleInfo class?

Thread ID:





33564 Aug 23,2005 04:21 AM UTC Aug 23,2005 06:58 AM UTC WinForms 3
Tags: GridControl
Atith Pagdi
Asked On August 23, 2005 04:21 AM UTC


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

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 05:58 AM UTC

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 06:58 AM UTC

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.


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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