Пример #1
0
        private void GenerateBindingView()
        {
            _columnBuilder.Clear();
            OnColumnsBuild(_columnBuilder);
            var list = _columnBuilder.GetColumns();

            GridView.Columns.Clear();
            foreach (var bind in list)
            {
                GridViewColumn item = new GridViewColumn();

                item.DisplayMemberBinding = new Binding(bind.BindingPath);
                item.Header = bind.ColumnName;
                GridView.Columns.Add(item);
            }
        }