DataGridView combobox column problem
-
I have a WinForms app. I have various DataGridViews throughout my app in which I use a combobox column. One in particular will only display the display member when that column has focus EVEN THOUGH I have set the DisplayStyleForCurrentCellOnly property to false. Has anyone encountered this and, more importantly, solved it?
modified on Thursday, September 24, 2009 1:15 PM
-
I have a WinForms app. I have various DataGridViews throughout my app in which I use a combobox column. One in particular will only display the display member when that column has focus EVEN THOUGH I have set the DisplayStyleForCurrentCellOnly property to false. Has anyone encountered this and, more importantly, solved it?
modified on Thursday, September 24, 2009 1:15 PM
I finally discovered what was causing the error. In the DataTable definition for the column in which the combobox was not being displayed, the datatype was defined as Int16. I changed it to Int32 and it works swimmingly.