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(); }
public void OnSort(object sender, ComponentArt.Web.UI.GridSortCommandEventArgs oArgs) { Grid1.Sort = oArgs.SortExpression; }