forum

Home / DeveloperSection / Forums / Add a datagridview collumn from another form

Add a datagridview collumn from another form

Anonymous User 1802 18-Aug-2014

I have two forms and a datagridview which is in the form1.Im trying to add a new column by clicking in a button from form2.Like that:

 Form2

    private void button1_Click(object sender, EventArgs e)
    {
        Form1 form1 = new Form1();
        form1.dataGridView1.Columns.Add("test" , "test");
    }

How can I do that?


c# c# 
Updated on 18-Aug-2014
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By