DataGridViewの設定プロパティ

Last-modified: 2011-01-12 (水) 16:42:43
amazon.gif

並び替え停止

DataViewオブジェクトを使えばフィルタリングやソートを実行できますが、DataGridViewコントロールのSort()メソッドでもソートを制御できます。

’---sort based on the first column---
DataGridView1.Sort(DataGridView1.Columns(0), _

  System.ComponentModel.ListSortDirection.Descending)

行間のサイズ設定

RowTemplate.Heightを設定する。プロパティにはRowTemplateがあり。その中にHeightがある。

ヘッダーテキストのフォント

ヘッダーのフォントの変更の仕方

amazon.gif

サイト内リンク

DataSet/DataTable/DataGridView

DB系