<SfGrid @ref="Grid" DataSource="@storeDataList" ShowColumnChooser="true" Toolbar="Toolbaritems"
AllowResizing="true" AllowPaging="true" AllowFiltering="@storeGridEnable" AllowExcelExport="true"
Height="@gridHeight" EnableAutoFill="true" AllowSelection="true" FrozenColumns="2">
<GridSelectionSettings CellSelectionMode="CellSelectionMode.Flow" Mode="Syncfusion.Blazor.Grids.SelectionMode.Cell"
Type="Syncfusion.Blazor.Grids.SelectionType.Multiple"></GridSelectionSettings>
<GridEditSettings AllowEditing="true" Mode="Syncfusion.Blazor.Grids.EditMode.Batch" ShowConfirmDialog="true"></GridEditSettings>
<GridEvents OnToolbarClick="@((args) => ToolbarClickHandler(args, "Grid"))"
OnBatchSave="@((args) => BatchSaveHandler(args, "Grid"))"
CellSelected="@((args) => CellSelectHandler(args, "Grid"))"
OnActionBegin="@((args)=>ActionBeginHandler(args,"Grid"))"
OnLoad="@((args)=>LoadHandler(args,"Grid"))"
TValue="storeDataList"></GridEvents>
<GridPageSettings PageCount="@pageCount" PageSize="@pageSize" CurrentPage="@currentPage" PageSizes="@pageSizes" />
<GridColumns>
<GridColumn Field=@nameof(StoreData.StoreKey) HeaderText="StoreKey" IsPrimaryKey="true"
TextAlign="TextAlign.Left" Width="@StoreKeyWidth" Visible="false" ShowInColumnChooser="false" />
<GridColumn Field=@nameof(StoreData.Store) HeaderText="Store" TextAlign="TextAlign.Left" Width="@DefaultWidth">
<HeaderTemplate>
Store
<span class="e-search-icon e-icons" @onclick="ToggleToDoGridSearchBar"></span>
<span class="@searchorderIcon" @onclick="@(() => ChangeSortOrder("Grid", "Store"))"></span>
</HeaderTemplate>
<EditTemplate>
<SfAutoComplete @ref="ACStore" ID="Store" @bind-Value="@((context as StoreData).Store)"
DataSource="@storeDataList.GroupBy(o => new { o.Store }).Select(o => o.FirstOrDefault()).ToList()">
<AutoCompleteFieldSettings Value="Store" tite></AutoCompleteFieldSettings>
<AutoCompleteEvents TItem="StoreData" Created="@(() => OnCreate("Store"))" TValue="string"></AutoCompleteEvents>
</SfAutoComplete>
</EditTemplate>
</GridColumn>
and so on. I have 32 columns.
System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=Syncfusion.Blazor
StackTrace:
at Syncfusion.Blazor.Grids.Internal.Selection`1.<AutofillBorder>d__59.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
This exception was originally thrown at this call stack:
Syncfusion.Blazor.Grids.Internal.Selection<T>.AutofillBorder(double?, double?, object)
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()