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

GridGroupingControl & GridWrapCellBehavior

Thread ID:





31534 Jul 8,2005 02:50 PM UTC Jul 8,2005 03:55 PM UTC WinForms 1
Tags: GridControl
Mikaël Morvan
Asked On July 8, 2005 02:50 PM UTC

This code seems not work with GridGroupingControl version : this.groupingGrid1.TableModel.Options.WrapCellBehavior = GridWrapCellBehavior.WrapRow; I''ve try it in the Grouping\FilterBar\Windows\Grid.Windows\Samples\Grouping\FilterBar sample. Regards, Mikaël

Administrator [Syncfusion]
Replied On July 8, 2005 03:55 PM UTC

This WrapRow property is not currently supported in GridGroupingControl as it uses a different navigation architecture that knows about nested tables and groups that are not needed in the other grids we have. So for now, if you want to wrap the row, you will have to handle the TableControlMoveCurrentCellDirection event. Here is a try at this. private void groupingGrid1_TableControlMoveCurrentCellDirection(object sender, GridTableControlMoveCurrentCellDirectionEventArgs e) { if(e.Inner.Direction == GridDirectionType.Right && this.groupingGrid1.TableModel.Options.WrapCellBehavior == GridWrapCellBehavior.WrapRow) { GridCurrentCell cc = e.TableControl.CurrentCell; GridTableCellStyleInfo style = e.TableControl.Model[cc.RowIndex, cc.ColIndex]; GridColumnDescriptor col = style.TableCellIdentity.Column; GridTableDescriptor tableDescriptor = style.TableCellIdentity.Table.TableDescriptor; if(col!= null && tableDescriptor.VisibleColumns.IndexOf(col.Name) == tableDescriptor.VisibleColumns.Count-1) { if(e.Inner.RowIndex < e.TableControl.Model.RowCount) { e.TableControl.Table.CurrentRecord.SetCurrent(tableDescriptor.VisibleColumns[0].Name); e.TableControl.Table.CurrentRecordManager.Navigate(e.TableControl.Table.CurrentRecord, 1); e.Inner.Handled = true; } } } }


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