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.
AdministratorMarch 7, 2005 10:26 AM UTC
They are all set right...
ArrayList list=new ArrayList();
where i inherit form GridControl and where
It looks like the the databinding is not done and the list is empty althought the base[1,index].IsEmpty is false...
AdministratorMarch 7, 2005 10:51 AM UTC
Your code worked for me using 22.214.171.124 in this sample.
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.
AdministratorMarch 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 ...
AdministratorMarch 7, 2005 12:27 PM UTC
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