RadGrid for ASP.NET

RadGrid Send comments on this topic.
Expression Property
See Also  Example
Telerik.WebControls Namespace > GridGroupByExpression Class : Expression Property


String representation of the GroupBy expression.   

 

Namespace: Telerik.WebControls
Assembly: RadGrid (in RadGrid.dll)

Syntax

Visual Basic (Declaration) 
Public Property Expression As String
Visual Basic (Usage)Copy Code
Dim instance As GridGroupByExpression
Dim value As String
 
instance.Expression = value
 
value = instance.Expression
C# 
public string Expression {get; set;}

Example

Here is a sample expression:
C#Copy Code
Country, City, count(Country) Items, ContactName Group By Country, City desc
    
Here is a sample expression:
Visual BasicCopy Code
Country, City, count(Country) Items, ContactName Group By Country, City desc
Here is a sample expression:
C#Copy Code
Country, City, count(Country) Items, ContactName Group By Country, City desc
    
Here is a sample expression:
Visual BasicCopy Code
Country, City, count(Country) Items, ContactName Group By Country, City desc

Remarks

Expression syntax:

fieldname[ alias]|aggregate(fieldname)[ alias][, ...] Group By fieldname[ sort][, ...]

  • fieldname: the name of any field from the RadGrid.DataSource
  • alias: alas string. This cannot contain blanks or other reserved symbols like ',', '.' etc.
  • aggregate: any of - min, max, sum, count, last, first etc (the same as in GridAggregateFunction enumeration )
  • sort: asc or desc - the sort order of the grouped items

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also