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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback


Thread ID:





25741 Mar 4,2005 04:26 PM UTC Mar 7,2005 12:27 PM UTC WinForms 5
Tags: GridControl
Administrator [Syncfusion]
Asked On March 4, 2005 04:26 PM UTC

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 06:19 PM UTC

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 10:26 AM UTC

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 10:51 AM UTC

Your code worked for me using 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 11:03 AM UTC

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 12:27 PM UTC

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


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

Live Chat Icon For mobile
Live Chat Icon