problem about dropdown cell in grid control

Started by dayange, January 20, 2008, 05:33:42 AM

Previous topic - Next topic

dayange

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?

owenwengerd

Before you call (dcl_Grid_GetItemtext), call (dcl_Grid_CancelItemEdit) to close the edit control and apply the new selection.

dayange

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).