GridView.AllowsColumnReorder Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets whether columns in a GridView can be reordered by a drag-and-drop operation.
public:
property bool AllowsColumnReorder { bool get(); void set(bool value); };
C#
public bool AllowsColumnReorder { get; set; }
member this.AllowsColumnReorder : bool with get, set
Public Property AllowsColumnReorder As Boolean
true
if columns can be reordered; otherwise, false
. The default value is true
.
The following example shows how to set the AllowsColumnReorder property.
XAML
<GridView AllowsColumnReorder="true"
ColumnHeaderToolTip="Employee Information">
XAML
</GridView>
C#
GridView myGridView = new GridView();
myGridView.AllowsColumnReorder = true;
myGridView.ColumnHeaderToolTip = "Employee Information";
Dim myGridView As New GridView()
myGridView.AllowsColumnReorder = True
myGridView.ColumnHeaderToolTip = "Employee Information"
Item | Value |
---|---|
Identifier Field | AllowsColumnReorderProperty |
Metadata properties set to true |
None |
Produk | Versi |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |
Bekerjasama dengan kami di GitHub
Sumber untuk kandungan ini boleh didapati di GitHub, di mana anda juga boleh mencipta dan menyemak isu dan menarik permintaan. Untuk maklumat lanjut, lihat panduan penyumbang kami.
.NET maklum balas
.NET ialah projek sumber terbuka. Pilih pautan untuk memberikan maklum balas: