Intersoft ClientUI Documentation
QueryOperation Property
See Also  Send Feedback
Intersoft.Client.UI.Data Namespace > UXGridView Class : QueryOperation Property






Gets or sets a value that determines whether the filtering operation should be performed in client-side or server-side.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Common Properties")>
Public Property QueryOperation As QueryOperation
Visual Basic (Usage)Copy Code
Dim instance As UXGridView
Dim value As QueryOperation
 
instance.QueryOperation = value
 
value = instance.QueryOperation
C# 
[CategoryAttribute("Common Properties")]
public QueryOperation QueryOperation {get; set;}
Delphi 
public read-write property QueryOperation: QueryOperation; 
JScript 
CategoryAttribute("Common Properties")
public function get,set QueryOperation : QueryOperation
Managed Extensions for C++ 
[CategoryAttribute("Common Properties")]
public: __property QueryOperation get_QueryOperation();
public: __property void set_QueryOperation( 
   QueryOperation value
);
C++/CLI 
[CategoryAttribute("Common Properties")]
public:
property QueryOperation QueryOperation {
   QueryOperation get();
   void set (    QueryOperation value);
}

Remarks

It is often useful to view and interact with information in a data grid control such as UXGridView in different ways by grouping, sorting, filtering or paging the data. To handle this data operation, UXGridView provides two approaches that you can choose from by setting the QueryOperation property.

Client Data Operation

Client data operation means that the data operation, such as sorting, filtering and paging; are executed in the client side against the data source provided to the UXGridView. To use this operation, you set the QueryOperation property to Client.

You typically use a collection that implements IPagedCollectionView as the data source or encapsulate the collection to a PagedCollectionView class. To learn how to perform client-side sorting, filtering and paging using UXGridView, see How-to: Implement Client-side Sorting, Filtering and Paging using UXGridView.

Server Data Operation

Server data operation means that the data operation, such as sorting, filtering and paging; are processed in the server side. In this mode, UXGridView does not handle the data operation by its own. It will simply provide the query information allowing you to process it further to a data service.

To use this mode, you set the QueryOperation property to Server. When this mode is selected, UXGridView will not attempt to perform the data operation on the given data source. Instead, it will store and distribute the query information on several properties such as FilterDescriptors, SortDescriptors and PageDescriptor property. When one of these properties change, the QueryChanged event of the associated QueryDescriptor will be raised. This allows you to streamline the query processing in a centralized function, which is one of the strong benefits of QueryDescriptor. For more information about QueryDescriptor, see QueryDescriptor Overview.

To learn how to perform server-side sorting, filtering and paging using UXGridView, see How-to: Implement Server-side Sorting, Filtering and Paging using UXGridView.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.