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

How to merge the columns and rows in a databound?

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.

3 Replies

AD Administrator Syncfusion Team 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


KI Kis 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!


AD Administrator Syncfusion Team October 10, 2003 05:21 AM

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

Loader.
Live Chat Icon For mobile
Up arrow icon