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

ResizeToFit

Thread ID:

Created:

Updated:

Platform:

Replies:

31912 Jul 18,2005 04:10 PM UTC Jul 19,2005 07:32 PM UTC WinForms 1
loading
Tags: Grouping
joe lacson
Asked On July 18, 2005 04:10 PM UTC

I would like to perform RowHeights.ResizeToFit on the child table after the expand on parent table, how would I accomplish that? Thanks, Joe

Administrator [Syncfusion]
Replied On July 19, 2005 07:32 PM UTC

Joe, try this code: private void gridGroupingControl1_RecordExpanded(object sender, RecordEventArgs e) { GridChildTable ct = e.Record.NestedTables[0].ChildTable as GridChildTable; // switch mode for TableModel ChildTable savedFilteredChildTable = ct.ParentTable.FilteredChildTable; try { ct.ParentTable.FilteredChildTable = ct; GridTableModel tm = ct.ParentTable.TableModel; tm.RowHeights.ResizeToFit(GridRangeInfo.Rows(0, tm.RowCount), GridResizeToFitOptions.ResizeCoveredCells); ct.ParentTable.FilteredChildTable = ct; } finally { ct.ParentTable.FilteredChildTable = savedFilteredChildTable; } } A sample project is here: ResizableRowsWithResizeToFit_F31912.zip Stefan >I would like to perform RowHeights.ResizeToFit on the child table after the expand on parent table, how would I accomplish that? > >Thanks, >Joe

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

;