 |
VFP 愛用者社區 本討論區為 Visual Foxpro 愛用者經驗交流的地方, 請多多利用"搜尋"的功能, 先查看看有無前例可循, 如果還有不懂的再發問. 部份主題有附加檔案, 須先註冊成為社區居民才可以下載.
|
上一篇主題 :: 下一篇主題 |
發表人 |
內容 |
ivanwong
註冊時間: 2004-11-25 文章: 2 來自: HK
第 1 樓
|
發表於: 星期四 十一月 25, 2004 11:27 am 文章主題: A question about click event procedure of datagrid |
|
|
In design time, I did coded a procedure for the click event of one data column in a datagrid and it works fine. However, when the datagrid was updated (record source dbf regenerated), all previous properties settings including the click event have been reset to default and no longer work afterward.
Does anyone can tell me how to recall or redefine the click event procedure in run time mode? Does VFP has any commands or methods that can save the properties setting for a object?
Many Many thanks for your help in advance.
Ivan Wong
|
|
回頂端 |
|
 |
syntech
註冊時間: 2003-05-16 文章: 4249 來自: Taipei,Taiwan
第 2 樓
|
|
回頂端 |
|
 |
bin1x
註冊時間: 2004-08-27 文章: 462
第 3 樓
|
發表於: 星期四 十一月 25, 2004 1:34 pm 文章主題: |
|
|
是不是應該看一下所繼承的class 的程式碼
且有些grid 之中還有container 來放控制物件也是有的
且試了一下,grid recordsourcetype 我用alias
在編輯資料時,click 事件不會被觸發
當滑鼠按到沒有資料的column 或row 時
click 事件才會被觸發
以上就是測的結果,就是這樣 |
|
回頂端 |
|
 |
horace
註冊時間: 2004-11-25 文章: 36 來自: 新竹
第 4 樓
|
發表於: 星期五 十一月 26, 2004 12:24 am 文章主題: |
|
|
When the recordsource dbf be regenerated ,the original objects of grid has been released. As your problem ,you should avoid to release the original recordsource ,or use the code to redraw the grid. |
|
回頂端 |
|
 |
|
|
您 無法 在這個版面發表文章 您 無法 在這個版面回覆文章 您 無法 在這個版面編輯文章 您 無法 在這個版面刪除文章 您 無法 在這個版面進行投票 您 無法 在這個版面附加檔案 您 無法 在這個版面下載檔案
|
|