|
My original code is:
SqlConnection con = DB.createConnection();
SqlDataAdapter sda = new SqlDataAdapter();
sda.SelectCommand = new SqlCommand("select * from memo",con);
DataSet ds = new DataSet();
sda.Fill(ds, "memo");
GridView1.DataKeyNames = new string[] {"memoID" };
GridView1.DataSource = ds.Tables["memo"];
GridView1.DataBind();
GridViewRow row = new GridViewRow();
Give advice. |
|