Hi,
I think you had written whole code inside
Save button click, you should have to define code on following manner
1. define this variable gollbally
DataTable dt;
2. in form_Load event
dt = new DataTable();<br/>
DataColumn dc = new DataColumn("X", typeof(System.String));
DataColumn dc1 = new DataColumn("Y", typeof(System.String));
DataColumn dc2 = new DataColumn("Z", typeof(System.String));
dt.Columns.Add(dc);
dt.Columns.Add(dc1);
dt.Columns.Add(dc2);
3. in Save button click
DataRow drow = dt.NewRow();
string[] rows = { "" + textBox10.Text, "" + textBox11.Text, "" + textBox12.Text };
dt.Rows.Add(rows);
BindGrd();
4. BindGrid()
public void dataGridView1.DataSource = dt;