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.

Header Rows

Thread ID:

Created:

Updated:

Platform:

Replies:

41553 Mar 5,2006 09:03 AM Jan 19,2011 07:22 AM ASP.NET Web Forms (Classic) 3
loading
Tags: GridGroupingControl
Driss Selhoum
Asked On March 5, 2006 09:03 AM

Hello, I have a GridGrouping Control bound to a DataSet having a DataRelation object. I would like to show the groups without any header rows AT ALL, I just want to view the data without any headers, for both the parent and the Child tables, how is this possible? Thank you for your help

Administrator [Syncfusion]
Replied On March 6, 2006 10:21 AM

Hi Driss, The visiblity of the column/row headers for parentTable and child table can be controlled by the following ways either in designer property setting or in code. a)Hiding Column Headers //The visiblity of the column headers for parentTable can be controlled by ShowColumnHeaders property in TopLevelGroupOptions settings this.GridGroupingControl1.TopLevelGroupOptions.ShowColumnHeaders = false; //The visiblity of the ColumnHeader for Nested tables can be controlled by ShowColumnHeaders property in NestedTableGroupOptions this.GridGroupingControl1.NestedTableGroupOptions.ShowColumnHeaders = false; b)Hiding Rowheaders //The visibility of the Row headers for a particular table can be controlled by the ShowRowHeader property in the TableOptions settings. this.GridGroupingControl1.TableOptions.ShowRowHeader = false; Best Regards, A.Sivakumar

Kumar Ramdurgkar
Replied On December 29, 2010 04:06 PM

I am looking to do exactly the same thing in a WPF Datagrid
I am using the latest version 8.4.0.10

Any suggestions please?

Thanks,
Kumar Ramdurgkar


Kamalakannan A [Syncfusion]
Replied On January 19, 2011 07:22 AM

Hi Driss,

WPF grid data control does not have any property to hide the header columns and header rows. However we can achieve this by using he following work around. This will hide the header cells in the column and row while expanding.

[Code snippet] [C#]

void dataGrid_Loaded(object sender, RoutedEventArgs e)
{
this.dataGrid.Model.Table.RecordExpanded += new EventHandler>(Table_RecordExpanded);
}

void Table_RecordExpanded(object sender, GridDataValueEventArgs e)
{
GridDataChildTableModel child = e.Value.ChildModels[0];
child.RowHeights[0] = 0;
child.ColumnWidths[0] = 0;

}

Please let us know if any queries.
Regards,
Kamal.




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.

;