DataGrid DataGrid Column Reorder

Enable column reorder by setting the AllowColumnReorder property to true. Define column initial order using column OrderIndex property.

In this demo ID and Photo columns have Reorderable="false" to prevent moving them, Last Name uses OrderIndex="1" and First Name uses OrderIndex="2" to set initial order, and reorder events are logged to the console.

ID
Photo
 
Last Name
 
First Name
 
Title
 
Birth Date
 
Hire Date
 
Address
 
City
 
Region
 
Postal Code
 
Country
 
Home Phone
 
Extension
 
Notes
 
No records to display.

Console log

✨ 오늘의 명언 & 마음의 양식

“천 리 길도 한 걸음부터 시작된다.”

— 라오쯔 (고대 철학자)

Demos Configuration

Premium Themes

  • Material 3
  • Material 3 Dark
  • Fluent
  • Fluent Dark

Free Themes

  • Material
  • Material Dark
  • Standard
  • Standard Dark
  • Default
  • Dark
  • Humanistic
  • Humanistic Dark
  • Software
  • Software Dark
An error has occurred. This app may no longer respond until reloaded. Reload 🗙