本節提供主題,示範涉及儲存格、資料列和資料行物件的各種程式設計工作。
本節中
操作說明:將工具提示加入至 Windows Forms DataGridView 控制項中的個別儲存格
描述如何處理 CellFormatting 事件,為個別儲存格提供不同的工具提示。
操作說明:依據 Windows Forms DataGridView 控制項儲存格的變更執行自訂動作
說明如何處理 CellValueChanged 和 CellStateChanged 事件。
操作說明:管理 Windows Forms DataGridView 控制項中的寬線
描述如何使用類型為 DataGridViewBand 的物件進行程式設計,這是資料列和資料行的基底類型。
操作說明:管理 Windows Forms DataGridView 控制項中的資料列
描述如何使用類型為 DataGridViewRow 的物件進行程式設計。
操作說明:管理 Windows Forms DataGridView 控制項中的資料行
描述如何使用類型為 DataGridViewRow 的物件進行程式設計。
操作說明:使用 Windows Forms DataGridView 控制項中的影像資料行
描述如何使用 DataGridViewImageColumn 類別進行程式設計。
參考文獻
DataGridView 提供控制件的 DataGridView 參考檔。
DataGridViewCell 提供類別的 DataGridViewCell 參考檔。
DataGridViewRow 提供類別的 DataGridViewRow 參考檔。
DataGridViewColumn 提供類別的 DataGridViewColumn 參考檔。
相關區段
Windows Forms DataGridView 控制項中的基本資料行、資料列和儲存格功能
提供描述常用的儲存格、資料列和資料行屬性的主題。