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.

Combobox List in GDBG

Thread ID:

Created:

Updated:

Platform:

Replies:

35056 Sep 21,2005 03:01 PM Oct 3,2005 09:32 AM Windows Forms 8
loading
Tags: GridControl
Kenneth Johnson
Asked On September 21, 2005 03:01 PM

I have a GDBG that loads a combobox list from a DataTable at startup with the following code: oGrid.GridBoundColumns[(int)PanelGridColumn.PanelType].StyleInfo.DataSource = this.oTypeTable; oGrid.GridBoundColumns[(int)PanelGridColumn.PanelType].StyleInfo.DisplayMember = "Panel"; oGrid.GridBoundColumns[(int)PanelGridColumn.PanelType].StyleInfo.ValueMember = "PanelId"; In the CurrentCellActivated event, the combobox list is reset from a DataView with the following code: this.oTypeView = new DataView(this.oTypeTable, sFilter, "PanelId", DataViewRowState.CurrentRows); oCellRend.ListBoxPart.DataSource = this.oTypeView; oCellRend.ListBoxPart.DisplayMember = "Panel"; oCellRend.ListBoxPart.ValueMember = "PanelId"; This grid allows the user to select and then edit multiple rows with this code in the CurrentCellChanged event: if (this.bMultiEdit) { for (int i=0; i

Administrator [Syncfusion]
Replied On September 22, 2005 10:09 AM

Hi Ken, Can you try CurrentCellShowingDropDown instead of CurrentCellActivated and let me know if that serves your purpose. Best regards, Stanley Sample

Administrator [Syncfusion]
Replied On September 22, 2005 10:19 AM

The reason for using CurrentCellActivating instead of ShowingDropdown is to give the user the capability of tabbing into the cell and selecting a value by typing. We use AutoComplete functionality extensively in our application.

Administrator [Syncfusion]
Replied On September 23, 2005 09:14 AM

Any progress on this?

Administrator [Syncfusion]
Replied On September 23, 2005 06:49 PM

When you step through your code, does oGrid.CurrentCell.Renderer.ControlValue have the proper value at each point in the loop? Or does it start out OK, and then looses the proper value? If so, you could cache this value into some temporary varible, and then use this temp varibale in the loop. Another thing to try is to use CurrentCellControlGotFocus to try to set up the ListBoxPart.DataSource to see if it will make things work. If you can upload a sample showing this problem, we might be able to suggest a solution.

Kenneth Johnson
Replied On September 27, 2005 10:28 AM

What''s up with the file upload page? I''ve been trying for ten minutes but it never loads.

Kenneth Johnson
Replied On September 30, 2005 08:29 AM

I''ve finally gotten time to put a sample together. This sample creates a reference DataTable that contains the various finish/color options for two parts. After entering different part/finish/color combinations in the grid, select all the rows and revise the color. What I would like to see happen is to display the selected color for each selected row if the color is in fact valid for the row. If not, display an empty cell and display a warning to the user. Thanks in advance for your assistance in this. Ken DeleteGrid_9328.zip

Administrator [Syncfusion]
Replied On October 3, 2005 08:14 AM

Is someone looking into this?

Administrator [Syncfusion]
Replied On October 3, 2005 09:32 AM

If you want guaranteed turn-arounds and know for sure your question will not be overlooked, you should use our Direct Trac support system to log your questions. This is a public forum without any safe guards to prevent questions from being overlooked as new posts are added to the forum. I think you will have better luck at getting thinsg working if you use CurrentCellShowingDropDown to filter for drop lists. The trick is not to create new DataViews, but just filter your original DataTable. Creating new dataviews causes problems. Here is you sample back with the code tweaked. As I do not entirely follow your filter logic, I am not sure that it is working exactly as you intend, but hopefully it will point you in the proper direction. http://www.syncfusion.com/Support/user/uploads/DeleteGrid_3366f091.zip

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.

;