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.

How to merge the columns and rows in a databound?

Thread ID:





7771 Oct 9,2003 01:54 AM Oct 10,2003 05:21 AM Windows Forms 3
Tags: GridControl
Asked On October 9, 2003 01:54 AM

There is a report I will do with databound is require merge some columns and rows in the header,I don't know how to do it.

Administrator [Syncfusion]
Replied On October 9, 2003 04:23 AM

You can just call Model.CoveredRanges.AddRange(0,col1, 0, col2) to cover header cells. Header cells can be accessed with row 0. If you have more header rows, check out also the Grid\Samples\DataBound\GDBGMultiHeader sample. Stefan

Replied On October 9, 2003 07:50 PM

thanks Stefan It working so! but went I binding a datasource to the databoundgrid ,the column name will disply with the field name of the datasource ,and I want to change the the header name with databoundgrid[0,cili]="", but it is not working .How to do change the column name ? thanks again!

Administrator [Syncfusion]
Replied On October 10, 2003 05:21 AM

Override QueryCellInfo and set e.Style.Text when e.rowIndex = 0 and e.ColIndex = cili Stefan


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.