Ejemplo n.º 1
0
        private void ShowDataPane(IEnumerable <SuperSimpleColumnTypes.TwoColumnType> info)
        {
            CtrlGrid.Dock    = DockStyle.Fill;
            CtrlGrid.Visible = true;
            ctrlFlow.Visible = false;

            if (_gridHelper == null)
            {
                _gridHelper = new GridHelper <SuperSimpleColumnTypes.TwoColumnType>(CtrlGrid, () => LoadStaticData(info), DisposalHelper);
                _gridHelper.UseAlternatingBackColor = true;
                _gridHelper.Columns.CreateColumn("Name", x => x.ColumnOne);
                _gridHelper.Columns.CreateColumn("Values", x => x.ColumnTwo);
                _gridHelper.ReloadOnce(true);
            }
            else
            {
                _gridHelper.ChangeData(() => LoadStaticData(info));
            }
        }