GridCellsPanel, RowDetailsVisibilityMode

Posted by: info on 26 April 2022, 3:03 pm EST

    • Post Options:
    • Link

    Posted 26 April 2022, 3:03 pm EST

    Hello.

    I have updated to C1.WPF.Grid.Ja 6.0.20221.218.

    1 FlexGrid RowDetailsVisibilityMode

    2 GridCellsPanel

    These are no longer available.

    I don’t need RowDetailsVisibilityMode now.

    However, I need this code.

    https://www.grapecity.com/forums/wpf-edition/not-to-hide-the-last-row#hi-mikihirothank-you-for-s

    Is this bug?

  • Posted 26 April 2022, 5:02 pm EST

    Hi,

    You need to replace GridCellsPanel with GridControlPanel as :

    
           private void FlexGrid_Loaded(object sender, RoutedEventArgs e)
            {
    			var scrollViewer = flexGrid.Template.FindName("ScrollViewer", flexGrid) as C1ScrollViewer;
    			var cellsPanel = scrollViewer.Content as GridControlPanel;
    			cellsPanel.Margin = new Thickness(0, 0, 0, 40);
            }
    
    

    Please refer the attached sample for the same: GridMargin.zip

    Best Regards,

    Nitin.

  • Posted 26 April 2022, 6:33 pm EST

    Thank you!

Need extra support?

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

Learn More

Forum Channels