dataGridView1.AutoGenerateColumns = false; DataGridViewColumn column1; DataGridViewColumn column2; DataGridViewColumn column3; DataGridViewColumn column4; DataGridViewColumn column5; DataGridViewColumn column6; column1 = new DataGridViewColumn(); column1.DataPropertyName = "ID"; column1.Name = "ID"; dataGridView1.Columns.Add(column1); column2 = new DataGridViewColumn(); column2.DataPropertyName = "Name"; column2.Name = "Name"; dataGridView1.Columns.Add(column2); column3 = new DataGridViewColumn(); column3.DataPropertyName = "RegNum"; column3.Name = "Registration Number"; dataGridView1.Columns.Add(column3); column4 = new DataGridViewColumn(); column4.DataPropertyName = "Gender"; column4.Name = "Gender"; dataGridView1.Columns.Add(column4); column5 = new DataGridViewColumn(); column5.DataPropertyName = "Relationship"; column5.Name = "Relationship"; dataGridView1.Columns.Add(column5); column6 = new DataGridViewColumn(); column6.DataPropertyName = "Address"; column6.Name = "Address"; dataGridView1.Columns.Add(column6);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)