public override GridColumn Clone()
        {
            DnnGridBoundColumn dnnGridColumn = new DnnGridBoundColumn();

            //you should override CopyBaseProperties if you have some column specific properties
            dnnGridColumn.CopyBaseProperties(this);

            return(dnnGridColumn);
        }
        public override GridColumn Clone()
        {
            DnnGridBoundColumn dnnGridColumn = new DnnGridBoundColumn();

            //you should override CopyBaseProperties if you have some column specific properties
            dnnGridColumn.CopyBaseProperties(this);

            return dnnGridColumn;
        }
        private void InitializeGrid()
        {
            Grid.MasterTableView.PagerStyle.PrevPageToolTip = LocalizeString("PagerPreviousPage.ToolTip");
            Grid.MasterTableView.PagerStyle.NextPageToolTip = LocalizeString("PagerNextPage.ToolTip");
            Grid.MasterTableView.PagerStyle.FirstPageToolTip = LocalizeString("PagerFirstPage.ToolTip");
            Grid.MasterTableView.PagerStyle.LastPageToolTip = LocalizeString("PagerLastPage.ToolTip");
            Grid.MasterTableView.PagerStyle.PageSizeLabelText = LocalizeString("PagerPageSize.Text");

            foreach (var columnExtension in epm.GetGridColumnExtensionPoints("DigitalAssets", "GridColumns", Filter))
            {
                var column = new DnnGridBoundColumn
                                    {
                                        HeaderText = columnExtension.HeaderText,
                                        DataField = columnExtension.DataField,
                                        UniqueName = columnExtension.UniqueName,
                                        ReadOnly = columnExtension.ReadOnly,
                                        Reorderable = columnExtension.Reorderable,
                                        SortExpression = columnExtension.SortExpression,
                                        HeaderTooltip = columnExtension.HeaderText
                                    };
                column.HeaderStyle.Width = columnExtension.HeaderStyleWidth;

                var index = Math.Min(columnExtension.ColumnAt, Grid.Columns.Count - 1);
                Grid.Columns.AddAt(index, column);
            }            
        }