New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Event arguments passed when RadGrid calls its NeedDataSource event.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class GridNeedDataSourceEventArgs : EventArgs

Inheritance: objectEventArgsGridNeedDataSourceEventArgs

Inherited Members EventArgs.Emptyobject.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
public GridNeedDataSourceEventArgs(GridRebindReason RebindReason, int startRowIndex, int rowsCount)
Parameters:RebindReasonGridRebindReasonstartRowIndexintrowsCountint
C#
public GridNeedDataSourceEventArgs(GridRebindReason RebindReason)
Parameters:RebindReasonGridRebindReason

Properties

Gets a value indicating if the

C#
public bool IsFromDetailTable { get; }
Property Value:

The is from detail table.

Gets a value specifying why the NeedDataSource event was fired.

C#
public GridRebindReason RebindReason { get; }
Property Value:

The rebind reason.

Gets a value specifying the number of rows that should be extracted from the data source when virtualization and custom paging are enabled.

C#
public int RowsCount { get; }
Property Value:

The total rows count.

Gets a value specifying the index of the first row in the data source that should be extracted when virtualization and custom paging are enabled.

C#
public int StartRowIndex { get; }
Property Value:

The first row index.