or
This is my grid properties.
<telerik:RadGrid ID="GvwItems" runat="server" ClientIDMode="AutoID" AutoGenerateColumns="False" GridLines="None" EnableLinqExpressions="False" Skin="Office2007" AllowPaging="True" AllowCustomPaging="true" PageSize="25" AllowSorting="True">
This is NeedDataSource Event
If IsExpanded = True OrElse e.IsFromDetailTable = True Then
GvwItems.VirtualItemCount = MyTable.Rows(0).Item("RCount")
Else
GvwItems.MasterTableView.VirtualItemCount = MyTable.Rows(0).Item("RCount")
End If