protected void grdvwDecommVehicles_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        switch (e.CommandName)
        {
        case "DecommVehEdit":
            ddlVehicleNumber.Visible = false;
            txtVehicleNumber.Visible = true;
            ddlDistrict.Visible      = false;
            txtDistrict.Visible      = true;
            var dv = new DataView(((DataSet)ViewState["DecommVehDet"]).Tables[0], "VehicleDecommId ='" + e.CommandArgument + "'", "VehicleDecommId", DataViewRowState.CurrentRows);
            ViewState["VehDecommId"] = e.CommandArgument;
            txtDistrict.Text         = dv[0]["District"].ToString();
            txtVehicleNumber.Text    = dv[0]["VehicleNumber"].ToString();
            txtDecommReason.Text     = dv[0]["DecommReason"].ToString();
            txtDecommDate.Text       = dv[0]["DecommDate"].ToString();
            txtDecommRemark.Text     = dv[0]["DecommRemark"].ToString();
            btnSubmit.Text           = "Update";
            break;

        case "DecommVehRevert":
            _fmsgenobj.VehicleDecommId = Convert.ToInt32(e.CommandArgument);
            var revertvehdecommres = _fmsgenobj.RevertVehicleDecommDetails();
            Show(revertvehdecommres != 0 ? "Record Reverted Successfully!!" : "Error!!");
            GetDecommVehicleDetails();
            break;
        }
    }