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.

Multicell columns?

Thread ID:

Created:

Updated:

Platform:

Replies:

33606 Aug 23,2005 07:13 AM Aug 24,2005 03:34 AM Windows Forms 7
loading
Tags: GridControl
Atith Pagdi
Asked On August 23, 2005 07:13 AM

How do I increase the width of a column to span over more than one cell in the GDBG control?

Administrator [Syncfusion]
Replied On August 23, 2005 07:35 AM

I do not understand your request. Do you want the column header of a column to display over 2 columns under it with the data under it refelcting 2 columns from your datasource? Or do you want every row to have a cell that spans 2 columns? If so, what happens to the values in the hidden column? Do you want them just not displayed? and do you want to insert an unbound column so all the original information in the data source is still visible? Or do you want something else?

Atith Pagdi
Replied On August 23, 2005 07:46 AM

Clay, I''ve brought one of the columns into a new row (multi row record) and this is the only column in the complete row. I want this column to span the entire length of the grid. A | B | c --------------------------- D --------------------------- A | B | C Data | Data | Data --------------------------- D data all throudh - spanning the entire length. ---------------------------- Also, how do I make the text in the cell wrap? Thanks, Atith

Administrator [Syncfusion]
Replied On August 23, 2005 09:20 AM

Try adding "-" as placeholders. This should make the column span additional cells. this.gridDataBoundGrid1.Binder.LayoutColumns("Col1", "Col2", "Col0", ".", "Col3", "-", "-");

Administrator [Syncfusion]
Replied On August 23, 2005 10:25 AM

What about making the cell text wrap around?

Administrator [Syncfusion]
Replied On August 23, 2005 10:54 AM

For that column, set //if you added GridBoundCoulumns grid.GridBoundColumns["D"].StyleInfo.WrapText = true; //if you have not added GridBoundCoulumns grid.Binder.InternalColumns["D"].StyleInfo.WrapText = true;

Atith Pagdi
Replied On August 24, 2005 01:39 AM

Clay, I was able to make the header columns invisible, but when I click the area where the invisible header cell is, the sort still happens based on that column. How do we disable sorting for particular columns? Thanks!

Administrator [Syncfusion]
Replied On August 24, 2005 03:34 AM

You can handle either the CellClick event or CellDoubleClick event and set e.Cancel = true if e.RowIndex and e.ColIndex point to your cell.

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.

;