static DataSet ds;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ds = new DataSet();
            this.BindGrid();
        }
    }
    private void BindGrid()
    {
         ds.Clear();
         ds.ReadXml(Request.PhysicalApplicationPath + @"\Items.xml");
         DataView dv = ds.Tables[0].DefaultView;
         dv.RowFilter = "Active = 'Y'";
         gvItems.DataSource = dv;
         gvItems.DataBind();
    }
    protected void OnRowCommand(object sender, GridViewCommandEventArgs e)
        {
            if (e.CommandName == "OnRowDelete")
            {
                int i = int.Parse(e.CommandArgument.ToString());
                ds.Tables[0].Rows[i]["Active"] = "N";
                ds.WriteXml(Request.PhysicalApplicationPath + @"\Items.xml");
                this.BindGrid();
            }
    }
