I'd really like to make use of the GridViewMultiComboBoxColumn but I'm finding a few problems.
I have the DataSource property of the column bound to a collection of business objects. That object has all sorts of properties and I really only want to show 2 of them.
I don't see any examples of the GridViewMultiComboBoxColumn in the shipping source code (Q3 2009 SP1) however I did find a couple of posts (here
) of others trying to do something similar and it appears I need to customize the displayed Grid in the CellBeginEdit event.
A funny implementation detail of this is that since that event gets called everytime the user clicks on a row, I now need to add some class variable to determine if I've customized the grid otherwise the columns I add programmatically get added over and over... overlooking that for the moment here's my questions.
Question 1: My first issue is that when I click on the cell with the GridViewMultiComboBoxColumn, it suddenly shows me a Type name 'Telerik.WinControls.UI.GridViewDataRowInfo' instead of the DisplayMember. Here's a screenshot
Question 1.1: As a side note, why must a click twice in the cell to get the drop down to display?
Question 2: My second issue is that when it displays the Grid, even though I've told it to only display 2 columns, it still makes space for all the properties. Why is this? It doesn't seem to matter if I call BestFitColumns(). Here's a screenshot
I've uploaded my source code here
for you to see.