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

GDBG with two ComboBox

Thread ID:





36755 Nov 9,2005 01:32 PM UTC Nov 10,2005 07:07 AM UTC WinForms 6
Tags: GridControl
Ken Lee
Asked On November 9, 2005 01:32 PM UTC

Hi When I using two comboxbox in GDBG has parent-child relationship between that. the code is following _GCS_OB_ORDERDETAILS.COL_ADCLASS.StyleInfo.ValueMember = "ADType-ADClass.CLASSNAME"; _GCS_OB_ORDERDETAILS.COL_ADCLASS.StyleInfo.DisplayMember = "ADType-ADClass.CLASSNAME"; In the Grid the combobox shows normally, but the cell shows "DataRowView" in the cell , when double click the cell, it can show normally as DisplayMember setting can you help me solve this problem?

Administrator [Syncfusion]
Replied On November 9, 2005 02:10 PM UTC

What are you setting the _GCS_OB_ORDERDETAILS.COL_ADCLASS.StyleInfo.DataSource to be? Did you try just setting the DisplayMember and ValueMember to "ClassName"?

Ken Lee
Replied On November 9, 2005 02:26 PM UTC

Hi, _GCS_OB_ORDERDETAILS.COL_ADCLASS.StyleInfo.DataSource is the parent datatable and "ADType-ADClass" is the name of datarelation for the parent datatable. I try the "ClassName" for DisplayMember, the dropdown list show "DataRowView" Thanks reply >What are you setting the _GCS_OB_ORDERDETAILS.COL_ADCLASS.StyleInfo.DataSource to be? > >Did you try just setting the DisplayMember and ValueMember to "ClassName"? > >

Administrator [Syncfusion]
Replied On November 9, 2005 03:01 PM UTC

The grid will not be able to use a relation as the datasource of a combobox cell in this manner. You can do it by dynamically setting a filter in CurrentCellShowingDropDown. Where is the parent item being set that determines what should be dropped as the child list? Is it set as another value in the same grid row (so the droplists vary form row to row)? Or, is it set outside the grid, so the same droplist is used for every cell? If you explain how the child is being determined, I can try to upload a sample showing how you can try to get it working.

Ken Lee
Replied On November 9, 2005 03:44 PM UTC

Hi, in this case, one cell value depends on the other cell value, but I have three more cell dependency, how can I control these cells can follow the replations as need. Or you can upload the sample code to me, Thanks in advance

Administrator [Syncfusion]
Replied On November 9, 2005 04:06 PM UTC

Here is a sample where setting the parentID value determines the dropdownlist for the childID column. http://www.syncfusion.com/Support/user/uploads/RelationInComboBox_f7bd1e6b.zip

Ken Lee
Replied On November 10, 2005 07:07 AM UTC

Thanks Clay Burch. The sample had solved my problem. Is there GBGD support datasource of individual combobox has parent-child relations later? I think this manner can easier than yours. Thanks again.


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

This page will automatically be redirected to the 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