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?
ADAdministrator Syncfusion Team August 8, 2005 12:11 PM
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
ADAdministrator Syncfusion Team August 8, 2005 02:36 PM
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.
ADAdministrator Syncfusion Team August 8, 2005 02:50 PM
The technique in the KB seems to work.
ADAdministrator Syncfusion Team August 8, 2005 03:07 PM
I cannot open your sample. Big complaints about the license. We''re using version 220.127.116.11.
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?
ADAdministrator Syncfusion Team August 8, 2005 03:12 PM
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.