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 ComboBox List Data Source

Thread ID:





32801 Aug 8,2005 04:36 PM UTC Aug 8,2005 08:12 PM UTC WinForms 5
Tags: GridControl
Kenneth Johnson
Asked On August 8, 2005 04:36 PM UTC

I have a grid with two columns, Part and Color. They are both comboboxes. The color combobox DataSource is set to a DataView with a filter set to the part. As long as the user selects parts with the same list of colors, everything is fine. When a part with a different list is selected, all parts already in the grid with a color that is no longer in the color view is changed to null. What do I need to do to display a list of colors specific to a part, yet also display all existing rows? Ken

Administrator [Syncfusion]
Replied On August 8, 2005 05:11 PM UTC

I think you will need to set the DataSource on the color column''s GridBoundcolumn.StyleInfo to be a list of all possible colors. Then in CurrentCellShowingDropDown, you can filter the list of colors to restrict them to what you want. Here is a KB that describes something similar. http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=115

Administrator [Syncfusion]
Replied On August 8, 2005 07:36 PM UTC

I looked at the KB article, but still couldn''t get my code to work right. I''ve attached a small sample that illustrates my problem. Ken GridTest_8015.zip

Administrator [Syncfusion]
Replied On August 8, 2005 07:50 PM UTC

The technique in the KB seems to work. http://www.syncfusion.com/Support/user/uploads/GridTest_390f25b8.zip

Administrator [Syncfusion]
Replied On August 8, 2005 08:07 PM UTC

I cannot open your sample. Big complaints about the license. We''re using version I see that you used the showing dropdown event. Can a user tab into the color cell and type a "w" and have "White" appear with that event? Ken

Administrator [Syncfusion]
Replied On August 8, 2005 08:12 PM UTC

Nevermind Clay. When I pasted your showdropdown code into my cellactivated event, my sample worked. The only difference seems to be your use of the renderer. I''ll try it in the real code and see what happens. Thanks. Ken


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