protected override void grid_RowActivated(object o, Data.RowActivatedArgs args)
        {
            if (SelectedItem == null)
            {
                return;
            }

            base.grid_RowActivated(o, args);
        }
        private void grid_RowActivated(object o, Data.RowActivatedArgs args)
        {
            DbTable?table = dataQueryResult.Table;

            if (table == null)
            {
                return;
            }

            DataField [] idFields = dataQueryResult.IdFields;
            if (idFields == null || idFields.Length == 0)
            {
                return;
            }

            SourceItemId id = new SourceItemId(
                new RowReader(dataQueryResult.Result [args.Row], dataQueryResult.Columns),
                table, idFields);

            id.AddConstants(dataQueryResult.IdConstants);
            BusinessDomain.FeedbackProvider.TrackEvent("Feature", "Open Entity from Report");

            EntityEditor.OpenEntityForEdit(id);
        }