Infragistics|Ignite UI for Blazor|如何停止對 DataGrid 列標題點擊進行排序

infragistics log


IgbDataGrid 是一個已棄用的控制項。請改用IgbGrid 。如果您對如何使用IgbGrid實作有任何疑問,請聯絡我們的技術支援。

預設情況下,按一下 DataGrid 列將按列對資料進行排序。您可以透過設定 HeaderClickAction=”HeaderClickAction.None” 來停止排序功能。

<DataGrid HeaderClickAction="HeaderClickAction.None"
          Height="100%"
          Width="100%"
          DataSource="DataSource"
          AutoGenerateColumns="false">
    <NumericColumn Field="ProductID" HeaderText="Product ID" />
    <TextColumn Field="ProductName" HeaderText="Product Name" />
    <NumericColumn Field="Price" HeaderText="Price" />
    <DateTimeColumn Field="OrderDate" HeaderText="Order Date" />
</DataGrid>
延伸閱讀
aa71435723的大頭照
Winston

Eggplant DAI 自動化測試專家。

留言