Exemple #1
0
        public void FillStockBrandTypeDetailGrid()
        {
            try
            {
                DataTable Dt = new DataTable();

                Dt = STOCK_BRANDTYPDETLogicLayer.GetAllSTOCK_BRANDTYPEDETAILSDetailByCompany((Session["COMP_CODE"].ToString()));
                GvStockBrandTypeDetail.DataSource = Dt;
                GvStockBrandTypeDetail.DataBind();
            }
            catch (Exception)
            {
                throw;
            }
        }
Exemple #2
0
        protected void GvStocktBrandTypeMaster_RowDataBound(object sender, GridViewRowEventArgs e)
        {
            try
            {
                if (e.Row.RowType == DataControlRowType.DataRow) // Bind nested grid view with parent grid view
                {
                    string   Id       = ((HiddenField)e.Row.FindControl("HfBrandTypeCode")).Value;
                    GridView childgrd = (GridView)e.Row.FindControl("GvNestedStockBrandTypeDetail");

                    DataTable Dt = new DataTable();

                    Dt = STOCK_BRANDTYPDETLogicLayer.GetAll_BRANDTYPE_CODEWise_BRANDTYPE_DETAILS(Id);
                    childgrd.DataSource = Dt;
                    childgrd.DataBind();
                }
            }
            catch (Exception)
            {
                throw;
            }
        }