gajesh
May 17th, 2009, 07:03 AM
Hello,
I am using DataGridViewComboBoxColumn as a column of DataGridView.
I have assigned data source as a List<myObject> and i am able to see all values in dropdown.
Now, for any Key Press it always select and display first element of list and but the selected value disappear as focus is taken away from the cell.
For e.g the comboBox list contains A, B, C & D. Now user presses key 'B' then it display 'B' as expected but if user presses 'E' then it display 'A' as selected and very strangely the selection disappears as focus looses from the cell.
What should i do not to display any selected value if it not in list?
I am using DataGridViewComboBoxColumn as a column of DataGridView.
I have assigned data source as a List<myObject> and i am able to see all values in dropdown.
Now, for any Key Press it always select and display first element of list and but the selected value disappear as focus is taken away from the cell.
For e.g the comboBox list contains A, B, C & D. Now user presses key 'B' then it display 'B' as expected but if user presses 'E' then it display 'A' as selected and very strangely the selection disappears as focus looses from the cell.
What should i do not to display any selected value if it not in list?