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

Grid group columns values should come in same row

Thread ID:

Created:

Updated:

Platform:

Replies:

54055 Dec 28,2006 02:17 PM UTC Jan 11,2007 11:00 AM UTC WinForms 9
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On December 28, 2006 02:17 PM UTC

Hi,

I am using grid grouping control and want to group on columns with expand collapse feature...but on expanding the group column next group columns should start on same grid row instead of next row as child..

How to achieve this...?

Please help

Administrator [Syncfusion]
Replied On December 29, 2006 06:05 AM UTC

Hi,

Try setting theTableOptions. IndentWidth property to "Zero". Here is a code snippet

this.gridGroupingControl1.TableOptions.IndentWidth = 0;

Also refer the below forum thread for more details.
http://www.syncfusion.com/support/forums/message.aspx?MessageID=36658

Best Regards,
Haneef

Administrator [Syncfusion]
Replied On January 10, 2007 07:06 AM UTC

Thanks,

Actually my requirement is to display 2nd group column value in the next column on the same row after first group value without affecting hierarchy +/- option
for e.g
Department Customer
-Department1 +Customer1 ......


When we set IndentWidth = 0 expand/collapse +/- signs disappear

Please help

Administrator [Syncfusion]
Replied On January 10, 2007 08:41 AM UTC


Administrator [Syncfusion]
Replied On January 10, 2007 11:35 AM UTC

My Requirement is to get group columns in seperate columns and next group cell should start on the same row tough it is hierarchy with +/- .

Can this possible

I want something like this
Department Customer
-Dept1 +Customer 1
+Customer 2
+Customer 3
-Dept2 +Customer 4
+Customer 5

Pls give me some sample

Administrator [Syncfusion]
Replied On January 10, 2007 12:14 PM UTC

Hi,

One way you can do this by handling the TableModel.QueryColWidth event of the grid and set e.Handle = true for required grouplevel. Please try the attached sample and let me know if you are trying something different.

Sample : ModifiedGGC_Group.zip

Best Regards,,
Haneef.

Notes : The attached sample sets the second group indent column to "Zero".

private void TableModel_QueryColWidth(object sender, GridRowColSizeEventArgs e)
{
GridTableModel model = sender as GridTableModel;
GridTableDescriptor descriptor = model.GroupingControl.TableDescriptor;
if( descriptor.GroupedColumns != null && descriptor.GroupedColumns.Count >= 2)
{
if( e.Index == 2)/*GroupLevel*/
{
e.Size = 0;
e.Handled = true;
}
}
}

Administrator [Syncfusion]
Replied On January 10, 2007 12:52 PM UTC

I am using grid grouping control i am not able to find any such event as TableMode...Please explain.


Administrator [Syncfusion]
Replied On January 10, 2007 01:06 PM UTC

Hi,

Sorry for the inconvenience caused.

The QueryColWidth event placed under the GridTableModel property. Could you please find event under the GridTableModel property. Here is a code snippet to show this.

//Form load...
this.gridGroupingControl1.TableModel.QueryColWidth +=new GridRowColSizeEventHandler(TableModel_QueryColWidth);

private void TableModel_QueryColWidth(object sender, GridRowColSizeEventArgs e)
{
GridTableModel model = sender as GridTableModel;
GridTableDescriptor descriptor = model.GroupingControl.TableDescriptor;
if( descriptor.GroupedColumns != null && descriptor.GroupedColumns.Count >= 2)
{
if( e.Index == 2)/*GroupLevel*/
{
e.Size = 0;
e.Handled = true;
}
}
}

Thanks for choosing Syncfusion Products.

Best Regards,
Haneef

Administrator [Syncfusion]
Replied On January 11, 2007 07:32 AM UTC

Hi,
This is nto what i am looking for.
As I mentioned i want Hierachy grouping grid with +/- for all group columns. with this I want my next group column i.e next hierarchy node after expanding 1st group column, should start on the same row i.e in the next cell of the first group column cell.
please see e.g below
I have group columns Department & Customer
Department | Customer
----------------------
-Dept1 |+Cust1
|+Cust2
-Dept2 |+Cust3
+Dept4 |

Please let me know this is possible or not in syncfusion grouping grid control.

Administrator [Syncfusion]
Replied On January 11, 2007 11:00 AM UTC

Hi,

The GroupingGrid currently has no support for this. Sorry for the inconvenience, but there is no easy way to get this working.

Thanks for your patience.
Best Regards,
Haneef

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.

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

;