DataGrid Column Resizing

Enable column resizing by setting the AllowColumnResize property to true.

In this demo the Photo column has MinWidth="100px" and MaxWidth="200px" constraints to limit resizing, ColumnResized events log the new widths to the console, and vertical grid lines make column boundaries clearer.

ID
 
Photo
 
First Name
 
Last Name
 
Title
 
Title Of Courtesy
 
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 🗙