this group simple example of an implementation which groups the items into Alphabetic categories based only on the first letter of each item for this we need to override the Value property (used for comparison) and the CompareTo function. Also the Clone method must be overriden, so this Group object can create clones of itself. Cloning of the group is used by the OutlookGrid
Inheritance: OutlookgGridDefaultGroup
Example #1
0
        /// <summary>
        /// each group class must implement the clone function
        /// </summary>
        /// <returns></returns>
        public override object Clone()
        {
            var gr = new OutlookGridAlphabeticGroup();

            gr.column    = this.column;
            gr.Val       = this.Val;
            gr.collapsed = this.collapsed;
            gr.text      = this.text;
            gr.height    = this.height;
            return(gr);
        }
Example #2
0
 /// <summary>
 /// each group class must implement the clone function
 /// </summary>
 /// <returns></returns>
 public override object Clone()
 {
     var gr = new OutlookGridAlphabeticGroup();
     gr.column = this.column;
     gr.Val = this.Val;
     gr.collapsed = this.collapsed;
     gr.text = this.text;
     gr.height = this.height;
     return gr;
 }