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.
ADAdministrator Syncfusion Team 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.
APAtith PagdiAugust 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.
>
>
>
ADAdministrator Syncfusion Team 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.