Skip to content

Commit

Permalink
Smalles...
Browse files Browse the repository at this point in the history
  • Loading branch information
rappen committed Jul 30, 2021
1 parent 07f7a64 commit fda0321
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion XRMTokensRun/XRMTR.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ private void SaveSettings()
private void tableselect_SelectedIndexChanged(object sender, EventArgs e)
{
var entity = tableselect.SelectedEntity;
record.Record = null;
ShowColumns();
if (entity != null && settings != null)
{
var token = settings.Token?.FirstOrDefault(t => t.key == entity.LogicalName)?.value;
Expand Down Expand Up @@ -176,7 +178,7 @@ private void ShowColumns()
lstRecord.Items.Clear();
if (record.Record != null)
{
lstRecord.Items.AddRange(record.Record.Attributes.Keys.Select(k => new ListViewItem(k)).ToArray());
lstRecord.Items.AddRange(record.Record.Attributes.Keys.OrderBy(k => k).Select(k => new ListViewItem(k)).ToArray());
}
}

Expand Down

0 comments on commit fda0321

Please sign in to comment.