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.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

27027 Apr 5,2005 10:34 AM Apr 8,2005 12:29 PM Windows Forms 8
loading
Tags: GridControl
Prof DISSOU Jamâl-Dine
Asked On April 5, 2005 10:34 AM

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 12:04 PM

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 12:38 PM

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 01:44 PM

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

Prof DISSOU Jamâl-Dine
Replied On April 7, 2005 08:12 AM

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

Administrator [Syncfusion]
Replied On April 7, 2005 08:55 AM

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 01:04 PM

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

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

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 12:29 PM

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.

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.

;