Completed
Last Updated: 15 Apr 2024 13:40 by ADMIN
Release 7.0.0 (2024 Q2)
裕亮
Created on: 15 Mar 2024 08:47
Category: DataGrid
Type: Bug Report
0
DataGrid: [WinUI] Exception is thrown when resizing the column to minimum and the column has a cell with null value
The DataGrid crashes, if there is a cell with NULL value and when resizing the column to minimum,
1 comment
ADMIN
Didi
Posted on: 15 Mar 2024 09:15

Workaround: 

Approach 1:

Set minimum width to the column with null value. 

<telerik:DataGridTextColumn
    CellContentStyle="{StaticResource textcellStyle}"
    HeaderStyle="{StaticResource headerStyle}"
    HeaderText="ddd"
    PropertyName="KKK"
    MinimumWidth="50"
    SizeMode="Fixed" />

 

Approach 2: Set IsResizable to false to the column with null value: 

                <telerik:DataGridTextColumn
                    CellContentStyle="{StaticResource textcellStyle}"
                    HeaderStyle="{StaticResource headerStyle}"
                    HeaderText="ddd"
                    PropertyName="KKK"
                    IsResizable="False"
                    SizeMode="Fixed" />

Regards,
Didi
Progress Telerik

A brand new ThemeBuilder course was just added to the Virtual Classroom. The training course was designed to help you get started with ThemeBuilder for styling Telerik and Kendo UI components for your applications. You can check it out at https://learn.telerik.com