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.

DataGrid Row Headers

Thread ID:

Created:

Updated:

Platform:

Replies:

39957 Jan 21,2006 07:44 AM Jan 21,2006 08:39 AM Windows Forms 1
loading
Tags: GridControl
Vijay Koul
Asked On January 21, 2006 07:44 AM

Hi frnds, I would like to have a datagrid with one column header and multiple row headers. Is that possible and if yes, how? Vijay

stanleyj [Syncfusion]
Replied On January 21, 2006 08:39 AM

Hi Vijay, If the datagrid is GridDataBoundGrid(GDBG) then you can set it with these properties. int extraRowHeaders = 2; int extraColHeaders = 1; // Initialize extra row and column header this.gridDataBoundGrid1.Model.Rows.HeaderCount = extraRowHeaders; this.gridDataBoundGrid1.Model.Rows.FrozenCount = extraRowHeaders; this.gridDataBoundGrid1.Model.Cols.HeaderCount = extraColHeaders; this.gridDataBoundGrid1.Model.Cols.FrozenCount = extraColHeaders; FrozenCount - If you need to freeze that row/column on scrolling. A related sample that we ship is GDBGMultiHeader under DataBound. Best regards, Stanley

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.

;