Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8100297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:42:24+00:00 2026-06-05T22:42:24+00:00

Using Telerik RadGrid I’m binding a datasource and attach a method to the OnItemDataBound

  • 0

Using Telerik RadGrid I’m binding a datasource and attach a method to the OnItemDataBound event.

<telerik:RadGrid ID="myGrid" runat="server"
    DataSourceID="myDataSource"
    OnItemDataBound="myMethod"
    >

I’ve been trying to find the solution for a while now with no luck. How could I check with the item being bound is the last item to be bound. For example, the below method will be called for each record

protected void myMethod(object sender, GridItemEventArgs e)
{
    //some condition to check whether the current item is the last
}

I hope if explained my problem clearly. Thank you in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T22:42:25+00:00Added an answer on June 5, 2026 at 10:42 pm
    if (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem)
    {
        if (e.Item.DataSetIndex == e.Item.OwnerTableView.DataSourceCount - 1)
        {
            //Last Grid Item 
        }
    }
    

    If paging, to check the last item on the page:

    (e.Item.ItemIndex == e.Item.OwnerTableView.PageSize - 1)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How Can I Retrieve SelectedID of Telerik RadGrid On Client-Side Without Using OnRowSelected event?
I'm using a telerik RadGrid, with a UserControl edit form. When the InsertCommand event
Using RadGrid for Asp.Net Ajax (from Telerik) I need to re-set the CurrentPageIndex. Some
Hai am using telerik wpf grid in grid selection change event am getting the
Using VS2008, and Telerik radGrid version 2010.1.519.35 I have a about 50 DNN modules
i'm using a Telerik Radgrid on ASP.Net 3.5 and whenever I postback, the selectedindex
I have a telerik radgrid that is doing an insert using an objectdatasource. The
I am using Telerik MVC grid ajax binding to show some records. While the
I'm using RadGrid from Telerik (RadGrid.Net2 (I know I should upgrade to a newer
I'm using a Telerik RadGrid with custom paging. My problem is that when I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.