We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Added ShowRowHeader to sfdatagrid and RefreshColumns() results in Object is Null Error

I added showrowheader to true for my application, and now I am getting this error - 

System.NullReferenceException: 'Object reference not set to an instance of an object.'

        This exception was originally thrown at this call stack: Syncfusion.UI.Xaml.Grid.DataRow.UpdateRenderer(Syncfusion.UI.Xaml.Grid.DataColumnBase, Syncfusion.UI.Xaml.Grid.GridColumn) Syncfusion.UI.Xaml.Grid.DataRow.UpdateColumn(Syncfusion.UI.Xaml.Grid.DataColumnBase, int) Syncfusion.UI.Xaml.Grid.DataRow.EnsureColumns(Syncfusion.UI.Xaml.ScrollAxis.VisibleLinesCollection) Syncfusion.UI.Xaml.Grid.RowGenerator.EnsureColumns(Syncfusion.UI.Xaml.ScrollAxis.VisibleLinesCollection) Syncfusion.UI.Xaml.Grid.VisualContainer.EnsureItems(bool) Syncfusion.UI.Xaml.Grid.VisualContainer.MeasureOverride(System.Windows.Size) System.Windows.FrameworkElement.MeasureCore(System.Windows.Size) System.Windows.UIElement.Measure(System.Windows.Size) System.Windows.ContextLayoutManager.UpdateLayout() System.Windows.ContextLayoutManager.UpdateLayoutCallback(object)


Can someone please help me fix this error so I can add a row header to my sfdatagr



4 Replies

JT Jacob Treisch March 1, 2023 11:45 PM UTC

This seems to be erroring after I do a RefreshColumns() method.



VS Vijayarasan Sivanandham Syncfusion Team March 2, 2023 01:56 PM UTC

Hi Jacob Treisch,

We have created a bug report for the reported issue “Null reference exception occurs when calling RefreshColumns helper method while ShowRowHeader property enabled”. We will fix this issue and include it in our upcoming Weekly NuGet release scheduled for March 21, 2023


You can track the status of this report through the following feedback link,


Feedback Link: https://www.syncfusion.com/feedback/41710/null-reference-exception-occurs-when-calling-refreshcolumns-helper-method-while


Note: The provided feedback link is private, and you need to login to view this feedback.


We appreciate your patience until then.

Regards,
Vijayarasan S



VS Vijayarasan Sivanandham Syncfusion Team March 21, 2023 01:58 PM UTC

Jacob Treisch,

We regret the inconvenience,

Weekly NuGet was not released today due to Essential Studio 2023 Volume 1 Main release next week. We will fix this issue and include it in our Essential Studio 2023 Volume 1 Main Release, which will be rolled out at the end of March 2023.

We will let you know once it is released. We appreciate your patience until then.




VS Vijayarasan Sivanandham Syncfusion Team March 24, 2023 02:20 PM UTC

Jacob Treisch,

We are glad to announce that our Essential Studio 2023 Volume 1 Main Release V21.1.35 is rolled out with the reported bug fix “Null reference exception occurs when calling RefreshColumns helper method while ShowRowHeader property enabled” and is available for download under the following link.

https://www.syncfusion.com/forums/181344/essential-studio-2023-volume-1-main-release-v21-1-35-is-available-for-download

We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.


Loader.
Up arrow icon