Thank you for your help.
1) This looks to have solved my problem with editing a single cell.
2) I made the change recommend by you unfortunately it is causing a crash on the page
I added the Cell Selected event handler
<GridEvents CellSelected="CellSelectedHandler" TValue="System.Dynamic.ExpandoObject"></GridEvents>
And the handler
public void CellSelectedHandler(CellSelectEventArgs<System.Dynamic.ExpandoObject> args)
{
Log.Debug("In CellSelectedHandler()");
}
I am thinking that I might not have the correct TValue set, but unsure.
The example of the Gid events in the documentation is very simplistic.
As I mentioned the grid is fully dynamic and I am mapping the data table to
and ExpandoObject like is you have shown in another example in your documentation
lstObj = new List<System.Dynamic.ExpandoObject> ();
foreach (DataRow row in gridData.Rows)
{
System.Dynamic.ExpandoObject e = new System.Dynamic.ExpandoObject();
foreach (DataColumn col in gridData.Columns)
e.TryAdd(col.ColumnName, row.ItemArray[col.Ordinal]);
lstObj.Add(e);
}
This is the exception:
blazor.webassembly.js:1 Uncaught (in promise) Error: System.ArgumentException: There is no event handler associated with this event. EventId: '212'.
Parameter name: eventHandlerId
at Microsoft.AspNetCore.Components.RenderTree.Renderer.DispatchEventAsync (:44316/System.UInt64 eventHandlerId, Microsoft.AspNetCore.Components.RenderTree.EventFieldInfo fieldInfo, System.EventArgs eventArgs) <0x3c61ed0 + 0x00054> in <filename unknown>:0
at Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer.DispatchEventAsync (:44316/System.UInt64 eventHandlerId, Microsoft.AspNetCore.Components.RenderTree.EventFieldInfo eventFieldInfo, System.EventArgs eventArgs) <0x3c61b08 + 0x00078> in <filename unknown>:0
Do you think I have the right TValue specified?