Пример #1
0
        private void BindData()
        {
            SqlParameter[] parameters =
            {
                new SqlParameter("@OrgId", SqlDbType.Int, 4, ParameterDirection.Input, false, 0, 0, null, DataRowVersion.Default, OrgId)
            };
            DbObject dbobj1 = new DbObject();

            dbobj1.CntOpen();

            DataGrid1.DataSource = dbobj1.drRunProcedure("sp_SelectEquipList", parameters);
            DataGrid1.DataBind();

            dbobj1.CntClose();
        }