Last Updated: 07 Feb 2024 11:21 by Martin Ivanov
Martin Ivanov
Created on: 07 Feb 2024 11:21
Category: DataGrid
Type: Bug Report
DataGrid: Column header content disappears when the column's Header property is changed at runtime and SizeMode is Fixed

Dynamically changing the Header of a RadDataGrid column is clearing the header visual's content. This means that you no longer see the header. To reproduce this the SizeMode of the column should be set to Fixed.

To work this around, instead of changing the Header of the column, you can assign the Header initially to a visual element - like TextBox - and change its content (like the Text property). Or alternatively, avoid the Fixed SizeMode.