OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: dayange on January 20, 2008, 05:33:42 AM

Title: problem about dropdown cell in grid control
Post by: dayange on January 20, 2008, 05:33:42 AM
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?
Title: Re: problem about dropdown cell in grid control
Post by: owenwengerd on January 21, 2008, 07:51:32 PM
Before you call (dcl_Grid_GetItemtext), call (dcl_Grid_CancelItemEdit) to close the edit control and apply the new selection.
Title: Re: problem about dropdown cell in grid control
Post by: dayange on January 21, 2008, 10:35:34 PM
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).