Tuesday, 22 May 2012

Add ListItemCollection Property To Custom Gridview

   private ListItemCollection m_Items=null;

   [DesignerSerializationVisibility(DesignerSerializationVisibility.Content),  
    NotifyParentProperty(true), 
    PersistenceMode(PersistenceMode.InnerProperty)
     ] 
        public virtual ListItemCollection Items
        {
            get
            {
                if (this.m_Items == null)
                {
                    this.m_Items = new ListItemCollection ();
                   
                }
                 return this.m_Items;
            }
        }

No comments:

Post a Comment