Exemplo n.º 1
0
        public void FillGrid(string BrandTypeCode)
        {
            try
            {
                DataTable Dt = new DataTable();

                Dt = BRAND_COMPMASLogicLayer.GetAllBRAND_COMPLAIN_MASDetail(Convert.ToInt32(Session["USERCODE"].ToString()), Convert.ToInt32(Session["COMP_CODE"].ToString()));
                DataView Dv = new DataView(Dt);
                if (BrandTypeCode != string.Empty)
                {
                    Dv.RowFilter = "BRANDTYPE_CODE=" + DdlBrandTypeName.SelectedValue.Trim();
                }

                GvBrandComplainMaster.DataSource = Dv.ToTable();
                GvBrandComplainMaster.DataBind();
            }
            catch (Exception)
            {
                throw;
            }
        }