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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to merge the columns and rows in a databound?

Thread ID:





7771 Oct 9,2003 05:54 AM UTC Oct 10,2003 09:21 AM UTC WinForms 3
Tags: GridControl
Asked On October 9, 2003 05:54 AM UTC

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 08:23 AM UTC

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 11:50 PM UTC

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 09:21 AM UTC

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon