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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Multicell columns?

Thread ID:





33606 Aug 23,2005 11:13 AM UTC Aug 24,2005 07:34 AM UTC WinForms 7
Tags: GridControl
Atith Pagdi
Asked On August 23, 2005 11:13 AM UTC

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 11:35 AM UTC

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 11:46 AM UTC

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 01:20 PM UTC

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 02:25 PM UTC

What about making the cell text wrap around?

Administrator [Syncfusion]
Replied On August 23, 2005 02:54 PM UTC

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 05:39 AM UTC

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 07:34 AM UTC

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.


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

or the page will be automatically redirected to 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