Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
動的データでは、アイテムの順序を変更できますか? トピックのリストがあり、OrderId 属性を (一貫性の検証を使用して) 変更したいのですが、簡単な方法はありますか?
はい、DataAnnotations の DisplayColumnAttribute を使用すると、既定の並べ替え列を使用できます。
public DisplayColumnAttribute(string displayColumn, string sortColumn, bool sortDescending );