you want to add runtime columns in gridview, It's easy, write your code in Page_Load();
private void namuna8_Load(object sender, EventArgs e)
{
DataGridViewTextBoxColumn xyz = new DataGridViewTextBoxColumn();
xyz.HeaderText = "vk-Ø";
xyz.Name = "Test";
xyz.Visible = true;
xyz.Width = 30;
dataGridView1.Columns.Add(xyz);
}
No comments:
Post a Comment