private void GetFinishGoodsList() { try { string Ocode = Convert.ToString(((SessionUser)Session["SessionUser"]).OCode); List <LC_FinishGoods> style = _Buyerbll.GetFinishGoodsList(Ocode); if (style.Count > 0) { grdFinishGoods.DataSource = style; grdFinishGoods.DataBind(); } } catch (Exception) { throw; } }