DataGridView相關

1.選擇一整列

DataGridView  屬性 → SelectionMode → FullRowSelect 


2.只能單選

DataGridView  屬性 → MultiSelect → False 


3.禁止排序功能

For i As Integer = 0 To DataGridView1.ColumnCount-1

    DataGridView1.Columns(i).SortMode = DataGridViewColumnSortMode.NotSortable

Next




參考網址: 


By Hao★


留言

熱門文章

[Ext.Net] Ext.util.Format

[Linux] Shell Script "==" and "=~"

[MS SQL] 使用 PIVOT 扭轉資料,由直列轉為橫向資料