Example #1
0
        protected void grdvViewPurchaseOrder_RowDataBound(object sender, GridViewRowEventArgs e)
        {
            if (e.Row.RowType == DataControlRowType.DataRow && grdvViewPurchaseOrder.EditIndex == e.Row.RowIndex)
            {
                PropCategory objcat = new PropCategory();
                DropDownList dd2    = (DropDownList)e.Row.FindControl("drpEditCategory");
                dd2.DataSource = BusinessNewPurchase.busSelectCategory(objcat);
                dd2.DataBind();

                PropSubCategory objsub = new PropSubCategory();
                DropDownList    dd3    = (DropDownList)e.Row.FindControl("drpEditSubCategory");
                dd3.DataSource = BusinessNewPurchase.busSelectSubCategoryGridview(objsub);
                dd3.DataBind();

                //propunit objUnit = new propunit();
                //DropDownList dd4 = (DropDownList)e.Row.FindControl("ddlUnit");
                //dd4.DataSource = BusinessNewPurchase.busSelectUnit(objUnit);
                //dd4.DataBind();

                PropSubSubCategory objsubsubsub = new PropSubSubCategory();
                DropDownList       dd5          = (DropDownList)e.Row.FindControl("drpEditSubSubCategory");
                dd5.DataSource = BusinessNewPurchase.buseditmodefillsubcat(objsubsubsub);
                dd5.DataBind();
            }
        }
Example #2
0
 public static DataSet buseditmodefillsubcat(PropSubSubCategory objsubsub)
 {
     return(DalItemPurchase.selectSubSubCategoryEditmode(objsubsub));
 }
Example #3
0
 public static DataSet selectSubSubCategoryEditmode(PropSubSubCategory objSubsub)
 {
     return(DBManager.ExecuteDataset("spFillSubSubCategoryEitmode"));
 }