.NET5 FlexGrid: Freezing Columns does not render the divider line

Posted by: frugamas on 1 February 2022, 8:18 am EST

  • Posted 1 February 2022, 8:18 am EST - Updated 3 October 2022, 11:33 pm EST

    I working with .net5 version(5.0.20212.112) of the FlexGrid and I’m having trouble dynamically changing the FrozenColumns.

    If the FlexGrid is opened with 0 columns frozen and then change the FrozenColumn to 1 the divider line does not render. If I resize the window, the line displays.

    If the FlexFrid is opened with 1 column frozen, it renders the divider properly and the changing the number works fine.

    Is there a way to refresh the UI so the divider line displays?

    Thanks,

    Felix

    Animated GIF of a modified FlexGridExplorer to show the issue.

  • Posted 1 February 2022, 6:28 pm EST

    Hi,

    we can reproduce the same issue at our end. However, we will check more on it.

    For meantime, you can use Measure method of the grid like:

    private void Button_Click(object sender, System.Windows.RoutedEventArgs e)
            {
                
                FrozenColumns += 1;
                grid.FrozenColumns = FrozenColumns;
                grid.FrozenLinesBrush = new SolidColorBrush(Colors.Red);
                [b]grid.Measure(new System.Windows.Size(grid.ActualWidth, grid.ActualHeight));[/b]
            }
    

    Hope, it will solve your issue.

    Thanks,

    Singh

  • Posted 2 February 2022, 4:01 am EST

    Thanks. The workaround works. Hopefully it can be resolved natively in later versions.

    Felix

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels