コード例 #1
0
        void dgJobs_SortCommand(object sender, ComponentArt.Web.UI.GridSortCommandEventArgs e)
        {
            m_selectedJobs = GetJobsSelected();

            if (e.SortExpression == SortExpression)
            {
                if (SortDirection == "DESC")
                {
                    SortDirection = "ASC";
                }
                else
                {
                    SortDirection = "DESC";
                }
            }
            else
            {
                SortExpression = e.SortExpression;
                SortDirection  = "ASC";
            }

            LoadGrid();
        }
コード例 #2
0
 public void OnSort(object sender, ComponentArt.Web.UI.GridSortCommandEventArgs oArgs)
 {
     Grid1.Sort = oArgs.SortExpression;
 }