Example #1
0
        void GetSortingProperties()
        {
            SortInfoCollectionMsx sic = SortingPropertiesPanel.GetValues();

            V.SortingByColumn = V.ThenBy1Column = V.ThenBy2Column = "";

            for (int i1 = 0; i1 < sic.SortList.Count; i1++)
            {
                SortInfoMsx  si  = sic.SortList[i1];
                string       col = si.DataColumnReference.Name;
                SortOrderMsx so  = si.SortOrder;

                if (i1 == 0)
                {
                    V.SortingByColumn = col;
                    V.SortingByType   = so;
                }

                else if (i1 == 1)
                {
                    V.ThenBy1Column = col;
                    V.ThenBy1Type   = so;
                }

                else if (i1 == 2)
                {
                    V.ThenBy2Column = col;
                    V.ThenBy2Type   = so;
                }
            }

            return;
        }
Example #2
0
        void SetupSortingTab()
        {
            SortInfoCollectionMsx sic = GetSortInfoCollection();

            SortingPropertiesPanel.Setup(SVP, sic, EditValueChanged);
        }