views:

39

answers:

3

Infragistics UltraGrid: Column has a drop down with auto-complete. How can I force a CellUpdate when the user selects an item from the list and not have to wait for him to hit enter or click a different cell.

+1  A: 

Hi, similar post was submitted to Infragistics forums and was answered.

http://community.infragistics.com/forums/p/47347/253023.aspx#253023

Thanks.

Taz
Thats very perceptive, but it was not successfully answered yet. I need to find an event for selectionchangecommitted on the grid and then j can call update. What is that event?
skimania
He finally answered it.
skimania
A: 

The way we do it is to declare the Dropdown

Private WithEvents dd As New UltraDropDown

Set the data source, value member, Display member etc.

Set the value list property of your column to the dd

"Me.ultragrid.DisplayLayout.Bands(0).Columns("Name").ValueList = dd"

Then on the "row selected" event of DD call the update event for active row of ultra grid.

"Me.ultragrid.ActiveRow.Update"

Brian Spencer
+1  A: 

And, the answer is:

grid.AfterCellListCloseUp += delegate { grid.UpdateData(); };

Much thanks to Mike Saltzman, the Infragistics Grid Guru:

http://community.infragistics.com/forums/p/47347/253023.aspx#253023

skimania
Yours is much cleaner.
Brian Spencer