I'm trying to make a grid have the ability to select a row and also allow the one column to contain a value list combobox. Currently when I set the CellClickAction to RowSelect I am no longer able to pick or edit an item from the column with the valuelist attached to it. I was hoping I could get a behavior similar to having the whole row select with 1 click, but if the user clicks again on the valuelist column the combobox will display. Is this behavior possible with the ultrawingrid? If not is there at least some way of making both of these features work together?
Here is sample code from my InitializeLayout event.
ugInvoice.DisplayLayout.Bands(0).Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.RowSelect
'Add Items to the list With e.Layout.ValueLists("vlInvoiceGroups").ValueListItems For Each r As DataRow In commonInvoiceGroups.Rows .Add(r("InvoiceGroupName"), r("InvoiceGroupName")) Next End With
What version of the grid are you using? Recently, the CellClickAction property was added to the Column as well as the Override. So you could set CellClickAction on the column with the DropDown to something different than the other columns.
Unfortunately if you read the initial request this wont work.
There is no available mode in the grid for... let's call it 2nd click edit. You can read this thread here for a workaround (albeit very inelegeant): http://forums.infragistics.com/forums/p/784/20830.aspx#20830. Ignore the 1st half and start with : can we return to the original question
Peter