예제 #1
0
    protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
    {
        long  id    = this.GridView1.DataKeys[e.RowIndex].Value.ToLong();
        Suzhi suzhi = Suzhi.FindById(id);

        if (suzhi != null)
        {
            suzhi.Delete();
        }
        this.BindData();
        this.Succeed();
    }