示例#1
0
        private void CreateToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Text = _appname;

            var dt = new DataTable();

            gridSource.DataSource = dt;

            _log.Debug($"Добавление колонок в {nameof(gridSource)}");
            var parser = new HtmlKbbParser("");

            foreach (var caption in parser.Captions)
            {
                dt.Columns.Add(caption, typeof(string));
            }


            gridSource.Update();

            foreach (DataGridViewColumn column in gridSource.Columns)
            {
                column.SortMode = DataGridViewColumnSortMode.NotSortable;
            }

            gridSource.Update();
        }
示例#2
0
        private void CreateToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Text = @"Billing Provider";

            var dt = new DataTable();

            gridSource.DataSource = dt;

            _log.Debug($"Добавление колонок в {nameof(gridSource)}");
            var parser = new HtmlKbbParser("");

            foreach (var caption in parser.Captions)
            {
                dt.Columns.Add(caption, typeof(string));
            }

            gridSource.Update();
        }