Completed
Last Updated: 05 Dec 2021 15:40 by ADMIN
Release LIB 2021.3.1206 (6 Dec 2021)
Dinko
Created on: 14 Oct 2021 09:04
Category: GridView
Type: Bug Report
1
GridView: The top validation border is missing on the first row cells in the Office2019 theme

When a RadGridView cell has a validation error, a red border will appear around the cell. In this case, the top validation border is missing on the first row cells. As a workaround, you can move the ContentPresenters of the cells a little bit in the loaded event of the control.

private void RadGridViewView_Loaded(object sender, System.Windows.RoutedEventArgs e)
{
    var treeListView = sender as RadTreeListView;
    var editorPresenters = treeListView.ChildrenOfType<ContentControl>().Where(x => x.Name == "PART_ContentPresenter" && x.ParentOfType<GridViewCell>() != null);
    foreach (var item in editorPresenters)
    {
        item.Margin = new System.Windows.Thickness(1);
    }
}

0 comments