protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e) { string sid = GridView1.DataKeys[e.RowIndex].Value.ToString(); if (sid.Length != 0) { com.COM_Del("OA_Address", sid, 1); } GridView1.DataSource = com.COM_Proc_Sel0("Pc_SeladdressbyPower"); GridView1.DataBind(); }