9using System.ComponentModel;
20 private object _businessObject;
21 private string _sortExpression;
22 private string _sortProperty;
23 private ListSortDirection _sortDirection;
24 private int _startRowIndex;
25 private int _maximumRows;
26 private bool _retrieveTotalRowCount;
36 get {
return _businessObject; }
37 set { _businessObject = value; }
49 return _sortExpression;
85 return _sortDirection;
99 return _startRowIndex;
128 return _retrieveTotalRowCount;
140 _startRowIndex = args.StartRowIndex;
141 _maximumRows = args.MaximumRows;
142 _retrieveTotalRowCount = args.RetrieveTotalRowCount;
144 _sortExpression = args.SortExpression;
145 if (!(
string.IsNullOrEmpty(_sortExpression)))
147 if (_sortExpression.Length >= 5 &&
148 _sortExpression.Substring(_sortExpression.Length - 5) ==
" DESC")
150 _sortProperty = _sortExpression.Substring(0, _sortExpression.Length - 5);
151 _sortDirection = ListSortDirection.Descending;
156 _sortProperty = args.SortExpression;
157 _sortDirection = ListSortDirection.Ascending;
Argument object used in the SelectObject event.
bool RetrieveTotalRowCount
Gets a value indicating whether the query should return the total row count through the Csla....
string SortExpression
Gets the sort expression that should be used to sort the data being returned to the data source contr...
ListSortDirection SortDirection
Gets the sort direction for the sort if only one property/column name is specified.
int StartRowIndex
Gets the index for the first row that will be displayed.
string SortProperty
Gets the property name for the sort if only one property/column name is specified.
object BusinessObject
Get or set a reference to the business object that is created and populated by the SelectObject event...
SelectObjectArgs(System.Web.UI.DataSourceSelectArguments args)
Creates an instance of the object, initializing it with values from data binding.
int MaximumRows
Gets the maximum number of rows that should be returned as a result of this query.
@ Serializable
Prevents updating or inserting until the transaction is complete.