Example #1
0
        public void FillGrid()
        {
            try
            {
                DataTable dt_ = new DataTable();
                dt_ = tbl_mjvManager.GetCRVList();

                GVScrhCRV.DataSource = dt_;
                GVScrhCRV.DataBind();

                ViewState["MCRV"] = dt_;
            }
            catch (Exception ex)
            {
                //throw;
                ScriptManager.RegisterStartupScript(this, this.GetType(), "isActive", "Alert();", true);
                lblalert.Text = ex.Message;
            }
        }
Example #2
0
 protected void TBSrhCRV_TextChanged(object sender, EventArgs e)
 {
     try
     {
         FillGrid();
         DataTable _dt = (DataTable)ViewState["MCRV"];
         DataView  dv  = new DataView(_dt, "mjv_sono LIKE '%" + TBSrhCRV.Text.Trim().ToUpper() + "%'", "[mjv_sono] ASC", DataViewRowState.CurrentRows);
         DataTable dt_ = new DataTable();
         dt_ = dv.ToTable();
         GVScrhCRV.DataSource = dt_;
         GVScrhCRV.DataBind();
         ViewState["MCRV"] = dt_;
     }
     catch (Exception ex)
     {
         //   throw;
         ScriptManager.RegisterStartupScript(this, this.GetType(), "isActive", "Alert();", true);
         lblalert.Text = ex.Message;
     }
 }