How to add a gridview control to a form which opens on button click..

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • indona
    New Member
    • Jul 2010
    • 9

    #1

    How to add a gridview control to a form which opens on button click..

    hi....i have a form on which i have a button, on button click another form opens. now i want to add a grid view control to the second form which opens on button click.

    the code is like this:

    private void button2_Click(o bject sender, EventArgs e)
    {
    Form form2= new Form();
    form2.Show();
    }


    now i want to add a grid view control to this new form i.e. form2..
    thanks a lot in advance...
Working...