Add option to reorder ProductsGrid columns

This commit is contained in:
Michael Bucari-Tovo 2022-05-09 13:21:10 -06:00
parent aecc54401d
commit 9fe95bbddc
4 changed files with 39 additions and 15 deletions

View file

@ -128,6 +128,12 @@ namespace AppScaffolding
if (!config.Exists(nameof(config.HiddenGridColumns)))
config.HiddenGridColumns = Array.Empty<string>();
if (!config.Exists(nameof(config.GridColumnsDisplayIndices)))
{
int startIndex = 0;
config.GridColumnsDisplayIndices = new int[30].Select(_ => startIndex++).ToArray();
}
}
/// <summary>Initialize logging. Run after migration</summary>