Hi
If any row has a column with a null value, I can't export.
Is there anyway I can get around this?
Kr
George
System.NullReferenceException was unhandled by user code
Message=Object reference not set to an instance of an object.
StackTrace:
at Syncfusion.Data.ItemPropertiesProvider.GetValue(Object record, String propName)
at Syncfusion.UI.Xaml.Grid.GridItemPropertiesProvider.GetValue(Object record, String propName)
at Syncfusion.UI.Xaml.Grid.Converter.GridExcelExportExtension.ExportRecordsToExcel(SfDataGrid grid, IEnumerable records, IPropertyAccessProvider propertyAccessProvider, IWorksheet sheet, ExcelExportingOptions excelExportingOptions, Group group)
at Syncfusion.UI.Xaml.Grid.Converter.GridExcelExportExtension.ExportToExcel(SfDataGrid grid, ObservableCollection`1 selectedItems, ExcelExportingOptions excelExportingOptions, IWorksheet sheet)
at SOAsci.Infrastructure.Behaviours.ExportTriggerAction.Invoke(Object parameter)
at System.Windows.Interactivity.TriggerBase.InvokeActions(Object parameter)
at System.Windows.Interactivity.EventTriggerBase.OnEvent(EventArgs eventArgs)
at System.Windows.Interactivity.EventTriggerBase.OnEventImpl(Object sender, EventArgs eventArgs)
at System.Windows.Controls.Primitives.ButtonBase.OnClick()
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.Controls.Control.OnMouseLeftButtonUp(Control ctrl, EventArgs e)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)
InnerException: