i'm making ASP.net application and i want to have some kind of table there. I tried using Grindview, but when i try to add second new row (from code), the second row replaces first row.
here is code:
DataTable dt = new DataTable();
            if (dt.Columns.Count == 0)
            {
                dt.Columns.Add("thing", typeof(string));
                dt.Columns.Add("thing2", typeof(string));
            }
            DataRow NewRow = dt.NewRow();
            NewRow[0] = label1.Text;
            NewRow[1] = label2.Text;
            dt.Rows.Add(NewRow);
            GridView1.DataSource = dt;
            GridView1.DataBind();
I'm expecting Gridview with 2 rows and button which gives you new row with every click.