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

Binding a Window Form with a (GridDataBoundGrid / GridGroupingControl) in Master-Details

Thread ID:

Created:

Updated:

Platform:

Replies:

27027 Apr 5,2005 02:34 PM UTC Apr 8,2005 04:29 PM UTC WinForms 8
loading
Tags: GridControl
Prof DISSOU Jamâl-Dine
Asked On April 5, 2005 02:34 PM UTC

Hi, Please, I have a windows form. On that form I have some TextBoxAdv controls bound to a Master Table. I would like to bind a (GridDataBoundGrid / GridGroupingControl) on the same form to Details Table. Best regards, Jamâl-Dine DISSOU

Administrator [Syncfusion]
Replied On April 5, 2005 04:04 PM UTC

For a GroupingGrid, see this sample. \Syncfusion\Essential Suite\3.0.1.0\Windows\Grid.Windows\Samples\Grouping\MasterDetailForm For a GridDataBoundGrid, see this entry in the grid user guide. ms-help://MS.VSCC/Syncfusion.Essential_Suite/Syncfusion.EssentialSuiteUsersGuide/syncfusion.ug.grid/syncfusion.ug.grid/UsingAMasterdetailsRelation.html

Prof DISSOU Jamâl-Dine
Replied On April 5, 2005 04:38 PM UTC

Thanks a loat. Additional question : How to make a GridGroupingControls Column to ResizeToFit all the Grid ? Jamâl-Dine DISSOU

Administrator [Syncfusion]
Replied On April 5, 2005 05:44 PM UTC

You can try calling this.gridGroupingControl1.TableModel.ColWidths.ResizeToFit(GridRangeInfo.Table());.

Prof DISSOU Jamâl-Dine
Replied On April 7, 2005 12:12 PM UTC

Hi Clay, It doesn''t work Jamâl-Dine DISSOU

Administrator [Syncfusion]
Replied On April 7, 2005 12:55 PM UTC

On the initial Display, you can use this setting to force the grid to check all the values to size the column. this.gridGroupingControl1.TableDescriptor.AllowCalculateMaxColumnWidth = true; After that, say in a button handler, I saw the above code enlarge (but not shrink) columns if necessary to display the full text. Are you trying this is a nested table or something?

Prof DISSOU Jamâl-Dine
Replied On April 7, 2005 05:04 PM UTC

OK How to make the ggc shrink ? Jamâl-Dine DISSOU

Administrator [Syncfusion]
Replied On April 7, 2005 06:33 PM UTC

Right now, the only way I would know to do it is to first make the with small, and then call ResizeToFit. You set the width of a column using grid.TableDescriptor.Columns["SomeCol"].Width.

Prof DISSOU Jamâl-Dine
Replied On April 8, 2005 04:29 PM UTC

Thanks a lot Jamâl-Dine DISSOU

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

;