private void Form1_Load(object sender, EventArgs e) { dgvDisp(); } private void dgvDisp() { DataGridViewTextBoxColumn dgvCol = new DataGridViewTextBoxColumn(); dgvCol = new DataGridViewTextBoxColumn(); dgvCol.Width = 65; dgvCol.ReadOnly = true; dgvCol.SortMode = DataGridViewColumnSortMode.Programmatic; dgvCol.HeaderText = "Type"; dgvBilling.Columns.Add(dgvCol); } DataGridViewRow r1 = new DataGridViewRow(); DataGridViewTextBoxCell c1 = new DataGridViewTextBoxCell(); c1 = new DataGridViewTextBoxCell(); c1.Value = stringSplitResult[0].ToString(); r1.Cells.Add(c1); dataGridView1.Rows.Add(c1);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)