Open chicane-S54 opened 4 years ago
Do a try and catch:
try
{
MVCGridDefinitionTable.GetDefinition<MyClass>("LogGrid");
}
catch (Exception e)
{
MVCGridDefinitionTable.Add("LogGrid", def);
}
The reason you are getting that error is because the grid is already defined, doing the try and catch is trying to get an existing form and if it cant it will define a new one.
I have the MVCGrid setup EXACTLY like your demos and I get the following ERROR: 'There is already a grid definition with the name 'LogGrid'. Parameter name: name'.