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. Image for the cookie policy date

DataGrid Row Headers

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

1 Reply

ST stanleyj Syncfusion Team January 21, 2006 01:39 PM UTC

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

Loader.
Live Chat Icon For mobile
Up arrow icon