public void InsertOrderby(int index, string column, bool asc) { if (!AllowedOrderbyColumns.Contains(column)) { AllowedOrderbyColumns.Add(column); } AppendOrderby(index, column, asc); }
/// <summary> /// add sort column and set the column to sortable /// </summary> /// <param name="column">column name</param> /// <param name="asc">asc</param> public void AddOrderby(string column, bool asc) { if (!AllowedOrderbyColumns.Contains(column)) { AllowedOrderbyColumns.Add(column); } AppendOrderby(column, asc); }