JNJayaleshwari N Syncfusion Team February 13, 2019 07:28 AM UTC
Thanks for contacting Syncfusion Support.
We have analyzed your query ”GetVisualContainer returns null when SfDataGrid is not on first tab” and the provided sample from our side. We regret to let you know that you can get the VisualContainer only when the DataGrid is visible.
However you can resolve this by adding null check before using the GetVisualContainer method. SfDataGrid.Loaded event will again raise when switching to the tab containing the SfDataGrid.