Grid group columns values should come in same row
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
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
SIGN IN To post a reply.
9 Replies
AD
Administrator
Syncfusion Team
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
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
AD
Administrator
Syncfusion Team
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
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
AD
Administrator
Syncfusion Team
January 10, 2007 08:41 AM UTC
Hi,
Please refer this.
http://www.syncfusion.com/support/Forums/message.aspx?MessageID=36658
Best Regards,
Haneef
Please refer this.
http://www.syncfusion.com/support/Forums/message.aspx?MessageID=36658
Best Regards,
Haneef
AD
Administrator
Syncfusion Team
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
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
AD
Administrator
Syncfusion Team
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;
}
}
}
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;
}
}
}
AD
Administrator
Syncfusion Team
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.
AD
Administrator
Syncfusion Team
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
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
AD
Administrator
Syncfusion Team
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.
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.
AD
Administrator
Syncfusion Team
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
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
SIGN IN To post a reply.
- 9 Replies
- 1 Participant
-
AD Administrator
- Dec 28, 2006 02:17 PM UTC
- Jan 11, 2007 11:00 AM UTC