GridView.AllowsColumnReorder Properti
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Mendapatkan atau mengatur apakah kolom dalam GridView dapat diurutkan ulang oleh operasi seret dan letakkan.
public:
property bool AllowsColumnReorder { bool get(); void set(bool value); };
public bool AllowsColumnReorder { get; set; }
member this.AllowsColumnReorder : bool with get, set
Public Property AllowsColumnReorder As Boolean
Nilai Properti
true jika kolom dapat diurutkan ulang; jika tidak, false. Nilai defaultnya adalah true.
Contoh
Contoh berikut menunjukkan cara mengatur AllowsColumnReorder properti.
<GridView AllowsColumnReorder="true"
ColumnHeaderToolTip="Employee Information">
</GridView>
GridView myGridView = new GridView();
myGridView.AllowsColumnReorder = true;
myGridView.ColumnHeaderToolTip = "Employee Information";
Dim myGridView As New GridView()
myGridView.AllowsColumnReorder = True
myGridView.ColumnHeaderToolTip = "Employee Information"
Keterangan
Informasi Properti Dependensi
| Item | Nilai |
|---|---|
| Bidang Pengidentifikasi | AllowsColumnReorderProperty |
Properti metadata diatur ke true |
Tidak |