Hello!
Version: "Xtreme SuitePro ActiveX 2006" Codejock.ReportControl.ocx 10.1.0.0
Example project: "Xtreme SuitePro 10\Xtreme SuitePro ActiveX 2006\samples\ReportControl\C#.NET\ReportSample\ReportSample.sln" file: frmMain.cs" function: public void AddRecord(int Importance, Boolean Checked, Boolean Attachment, String From, String Subject, Boolean Sent, int MsgSize, Boolean Read, Double Price, Boolean Received, Boolean Created, String Conversation, String Contact, String Msg, String CC, String Categories, String Autoforward, String DoNotAutoarch, String DueBy, String Preview)
I hase made folowing changes:
//Adds a new ReportRecordItem to the Record, this can be thought of as adding a cell to a row //1 Item = Record.AddItem(""); /*2 */ Item = Record.AddItem(Importance); if (Importance == Constants.IMPORTANCE_HIGH) { //Assigns an icon to the item Item.Icon = Constants.RECORD_IMPORTANCE_HIGH_ICON; //Assigns a GroupCaption to the item, this is displayed in the group row when grouped by the column //this item belong to. //3 Item.GroupCaption = "Importance: Hight"; //Sets the group priority of the item when grouped, the lower the number the higher the priority, //Highest priority is displayed first Item.GroupPriority = Constants.IMPORTANCE_HIGH; //Sets the sort priority of the item when the column is sorted, the lower the number the higher the priority, //Highest priority is sorted displayed first, then by value Item.SortPriority = Constants.IMPORTANCE_HIGH; }
if (Importance == Constants.IMPORTANCE_LOW) { Item.Icon = Constants.RECORD_IMPORTANCE_LOW_ICON; //4 Item.GroupCaption = "Importance: Low"; Item.GroupPriority = Constants.IMPORTANCE_LOW; Item.SortPriority = Constants.IMPORTANCE_LOW; }
if (Importance == Constants.IMPORTANCE_NORMAL) { //5 Item.GroupCaption = "Importance: Normal"; Item.GroupPriority = Constants.IMPORTANCE_NORMAL; Item.SortPriority = Constants.IMPORTANCE_NORMAL; }
Then group RC by "Importanc" column. I got a bug in group names. See image:
I got the same problem in my project. This just short example.
|