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

Thread ID:

Created:

Updated:

Platform:

Replies:

25741 Mar 4,2005 11:26 AM Mar 7,2005 07:27 AM Windows Forms 5
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On March 4, 2005 11:26 AM

I have a strange problem I have a comboboxcell but when i clik on it it does not open... I use the V2.0.5 and i inherit from the gridControl I fill the list with base[1,index].DataSource=Mylist;

Administrator [Syncfusion]
Replied On March 4, 2005 01:19 PM

Is the style for this cell have any special properties set that might be interferinh with the click? Like style.ReadOnly, style.Enabled, style.Clickable. If you look at the grid\samples\CellTypes\ComboboxCells sample, it shows various setting that might affect teh combobox being droppable.

Administrator [Syncfusion]
Replied On March 7, 2005 05:26 AM

They are all set right... ArrayList list=new ArrayList(); list.Add ("item1"); list.Add ("item2"); list.Add ("item3"); base[1,index].DataSource=list; where i inherit form GridControl and where thisRow=new GridStyleInfo(); thisRow.BaseStyle="Standard"; thisRow.Clickable=true; thisRow.CellType="ComboBox"; thisRow.DropDownStyle=GridDropDownStyle.Exclusive; It looks like the the databinding is not done and the list is empty althought the base[1,index].IsEmpty is false...

Administrator [Syncfusion]
Replied On March 7, 2005 05:51 AM

Your code worked for me using 2.1.0.9 in this sample. http://www.syncfusion.com/Support/user/uploads/GC_2109ArrayList_7e45336e.zip Does this sample work for you with 2051? (Make sure you build it before you try to open it in the designer as there is a derived class in it). If not, and you want to use a collection of strings as your dropdown, then create a StringCollection holding teh strings, and set this as the cell''s style.ChoiceList (and do no use the DataSource property) to see if that will work for you.

Administrator [Syncfusion]
Replied On March 7, 2005 06:03 AM

Yes it works on 2.0.5...so the problem is coming from elsewhere... The only difference i have with you code is that all the code you have in the form is in my inherited control and where you write gridControl1[1,index].DataSource i have base[1,index].DataSource because this syntax is not accepted this[1,index].DataSource ...

Administrator [Syncfusion]
Replied On March 7, 2005 07:27 AM

Clay i found the problem ! It was coming from the fact that the selection was set to false and in _grid_CurrentCellActivating e.colindex=0 I fix it by adding a test Thanks so much for your help Thiker

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.

;