problem about dropdown cell in grid control

Started by dayange · 2008-01-20 13:33 UTC · 2 replies · SMF topic #139

I set cell style as dropdown in grid control:

1. When I select a item in droplist, it seems that the OnEndLabelEdit Event dosen't happen until I click other cell.
How can I get the changed value immediately?

2. If I do not click other cell, (dcl_Grid_SetItemText) cannot return the new value in dropdown cell.

What should I do?
Before you call (dcl_Grid_GetItemtext), call (dcl_Grid_CancelItemEdit) to close the edit control and apply the new selection.
Thanks Owen. Your suggestion is very helpful.

BTW, I found a slip of pen: in grid control intelligent help, the CancelItemEdit function is written as(dcl_ListView_CancelItemEdit), the right function should be (dcl_Grid_CancelItemEdit).