using System; using System.Collections.Generic; using System.Text; using Csla; namespace VEPROMS.CSLA.Library { public partial class GridInfo { public void ResetContent(Grid myGrid) { RefreshFields(myGrid); } public void SetData(string myData) { _Data = myData; RemoveFromCache(this); } public static GridInfo GetNonCached(int contentID) { //if (!CanGetObject()) // throw new System.Security.SecurityException("User not authorized to view a Grid"); try { GridInfo tmp = DataPortal.Fetch(new PKCriteria(contentID)); if (tmp.ErrorMessage == "No Record Found") { tmp.Dispose(); // Clean-up GridInfo tmp = null; } return tmp; } catch (Exception ex) { throw new DbCslaException("Error on GridInfo.Get", ex); } } } }