線上訂房服務-台灣趴趴狗聯合訂房中心
發文 回覆 瀏覽次數:1043
推到 Plurk!
推到 Facebook!

Grid的不同?

尚未結案
wjlin
一般會員


發表:10
回覆:15
積分:5
註冊:2003-09-09

發送簡訊給我
#1 引用回覆 回覆 發表時間:2003-09-24 15:53:57 IP:61.13.xxx.xxx 未訂閱
非常抱歉 想請教一下 有沒有人可以教我一下 StringGrid DrawGrid DBGrid 這些最大的差異在哪 各自有什麼樣的特性 適合什麼樣的使用時機呢? 我是個新手 目前只有用過StringGrid 懇請高手指導一下 非常感謝
furbylin
一般會員


發表:6
回覆:29
積分:12
註冊:2003-08-29

發送簡訊給我
#2 引用回覆 回覆 發表時間:2003-09-26 14:56:44 IP:61.221.xxx.xxx 未訂閱
您好: 請查閱 Borland C++ Bulder Help TStringGrid represents a grid control designed to simplify the handling of strings and associated objects. TStringGrid introduces the ability to associate an object with each string in the grid. These objects can encapsulate any information or behavior represented by the strings that are presented to the user. If the strings to be presented in a grid represent field values from the records in a dataset, use TDBGrid instead. TDrawGrid represents a grid control that displays information in column and row format. TDrawGrid introduces several events and methods to allow applications to customize the appearance and behavior of the grid. If the cells of the grid contain text strings that represent objects, consider using a TStringGrid object instead. If the grid displays field values from the records in a dataset, use TDBGrid instead. TDBGrid displays and manipulates records from a dataset in a tabular grid. Put a TDBGrid object on a form to display and edit the records from a database table or query. Applications can use the data grid to insert, delete, or edit data in the database, or simply to display it. At runtime, users can use the database navigator (TDBNavigator) to move through data in the grid, and to insert, delete, and edit the data. Edits that are made in the data grid are not posted to the underlying dataset until the user moves to a different record or closes the application. TDBGrid implements the generic behavior introduced in TCustomDBGrid. TDBGrid publishes many of the properties inherited from TCustomDBGrid, but does not introduce any new behavior. 這三個元件都可以表逹二維陣列, TStringGrid適合顯示字串型態的結果, TDrawGrid適合表現自我風格樣式或小圖形, TDBGrid適合用來顯示資料庫結果集, 當然你也可以用TStringGrid顯示資料庫的Dataset, 只是還要處理額外的事件罷了.
wjlin
一般會員


發表:10
回覆:15
積分:5
註冊:2003-09-09

發送簡訊給我
#3 引用回覆 回覆 發表時間:2003-09-28 02:17:01 IP:210.192.xxx.xxx 未訂閱
感謝您的重點提示 我會再多學習的
系統時間:2024-05-16 8:26:56
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!