35 references to DataSourceCapabilities
System.Web (32)
UI\DataSourceSelectArguments.cs (18)
12
private
DataSourceCapabilities
_requestedCapabilities;
13
private
DataSourceCapabilities
_supportedCapabilities;
61
_requestedCapabilities &= ~
DataSourceCapabilities
.Page;
65
_requestedCapabilities |=
DataSourceCapabilities
.Page;
81
_requestedCapabilities |=
DataSourceCapabilities
.RetrieveTotalRowCount;
84
_requestedCapabilities &= ~
DataSourceCapabilities
.RetrieveTotalRowCount;
102
_requestedCapabilities &= ~
DataSourceCapabilities
.Sort;
105
_requestedCapabilities |=
DataSourceCapabilities
.Sort;
122
_requestedCapabilities &= ~
DataSourceCapabilities
.Page;
126
_requestedCapabilities |=
DataSourceCapabilities
.Page;
152
public void AddSupportedCapabilities(
DataSourceCapabilities
capabilities) {
187
DataSourceCapabilities
unsupportedCapabilities;
190
if ((unsupportedCapabilities &
DataSourceCapabilities
.Sort) != 0) {
191
view.RaiseUnsupportedCapabilityError(
DataSourceCapabilities
.Sort);
194
if ((unsupportedCapabilities &
DataSourceCapabilities
.Page) != 0) {
195
view.RaiseUnsupportedCapabilityError(
DataSourceCapabilities
.Page);
198
if ((unsupportedCapabilities &
DataSourceCapabilities
.RetrieveTotalRowCount) != 0) {
199
view.RaiseUnsupportedCapabilityError(
DataSourceCapabilities
.RetrieveTotalRowCount);
UI\DataSourceView.cs (4)
275
protected internal virtual void RaiseUnsupportedCapabilityError(
DataSourceCapabilities
capability) {
276
if (!CanPage && ((capability &
DataSourceCapabilities
.Page) != 0)) {
280
if (!CanSort && ((capability &
DataSourceCapabilities
.Sort) != 0)) {
284
if (!CanRetrieveTotalRowCount && ((capability &
DataSourceCapabilities
.RetrieveTotalRowCount) != 0)) {
UI\WebControls\ObjectDataSourceView.cs (3)
984
arguments.AddSupportedCapabilities(
DataSourceCapabilities
.Sort);
987
arguments.AddSupportedCapabilities(
DataSourceCapabilities
.Page);
990
arguments.AddSupportedCapabilities(
DataSourceCapabilities
.RetrieveTotalRowCount);
UI\WebControls\SqlDataSourceView.cs (7)
892
arguments.AddSupportedCapabilities(
DataSourceCapabilities
.Page);
896
arguments.AddSupportedCapabilities(
DataSourceCapabilities
.Sort);
900
arguments.AddSupportedCapabilities(
DataSourceCapabilities
.RetrieveTotalRowCount);
1426
protected internal override void RaiseUnsupportedCapabilityError(
DataSourceCapabilities
capability) {
1427
if (!CanPage && ((capability &
DataSourceCapabilities
.Page) != 0)) {
1431
if (!CanSort && ((capability &
DataSourceCapabilities
.Sort) != 0)) {
1435
if (!CanRetrieveTotalRowCount && ((capability &
DataSourceCapabilities
.RetrieveTotalRowCount) != 0)) {
System.Web.Entity (3)
System\Data\WebControls\EntityDataSourceView.cs (3)
1630
arguments.AddSupportedCapabilities(
DataSourceCapabilities
.Sort);
1634
arguments.AddSupportedCapabilities(
DataSourceCapabilities
.Page);
1635
arguments.AddSupportedCapabilities(
DataSourceCapabilities
.RetrieveTotalRowCount);