全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:1026
推到 Plurk!
推到 Facebook!

editormode是什麼意思

尚未結案
sundy6719
初階會員


發表:136
回覆:78
積分:42
註冊:2002-07-10

發送簡訊給我
#1 引用回覆 回覆 發表時間:2004-03-31 11:44:03 IP:203.70.xxx.xxx 未訂閱
請教一個問題 dbgrid1.editormode:=true; 是什麼意思 我使用dbgrid1.editormode:=false也可以編輯丫
hagar
版主


發表:143
回覆:4056
積分:4445
註冊:2002-04-14

發送簡訊給我
#2 引用回覆 回覆 發表時間:2004-03-31 12:08:43 IP:202.39.xxx.xxx 未訂閱
看一下 help 中關於 EditorMode 的 Note 部份: EditorMode has no effect if the Options property does not include goEditing or if the Options property includes goAlwaysShowEditor.    -- He just never quits.
Fishman
尊榮會員


發表:120
回覆:1949
積分:2163
註冊:2006-10-28

發送簡訊給我
#3 引用回覆 回覆 發表時間:2004-03-31 12:47:26 IP:210.65.xxx.xxx 未訂閱
Sorry !! 插一下花    Delphi Help 中關於 EditorMode 的 Description 部份如下: Set EditorMode to True, at runtime, to put the grid in edit mode. When EditorMode is True, the user can edit cells in the grid. When the user presses F2, EditorMode is set to True. When the user presses Enter, the value of EditorMode is toggled. 因此看來 EditorMode 只是在標示該 DBGrid 是否在編輯模式下,而且即使 DBGrid1.EditorMode := False; EditorMode 還是會根據你的按鍵輸入(F2,Enter,.....)或進入編輯狀態,而自動更改它的值 ---------------------------------- 小弟才疏學淺,若有謬誤尚請不吝指教 ----------------------------------
------
Fishman
系統時間:2024-05-16 23:10:23
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!