For binding the datagridview need a datatable or dataset.
You can add the 2 variable values into a datatable and then bind the same with datagridview
Creating a datatable with two fileds the id and value
DataTable aTable = new DataTable("TableName");
aTable.Columns.Add("ID", typeof(int));
aTable.Columns.Add("VarValue", typeof(string));
DataRow dr;
dr = aTable.NewRow();
dr["ID"] = 1;
dr["VarValue"] = "Variable1 Value";
aTable.Rows.Add(dr);
dr = aTable.NewRow();
dr["ID"] = 2;
dr["VarValue"] = "Variable2 Value";
aTable.Rows.Add(dr);
Now you need to bind the data table with the gird-view
GridView1.DataSource = aTable;
GridView1.DataBind();
Hope this will help you :)