DataGrid, ItemDataBound

Discussion in 'ASP .Net' started by =?Utf-8?B?Sm9u?=, Jan 13, 2005.

  1. Hello all,

    Within the ItemDataBound event of the datagrid, what is the best way to
    detect if the current item is the last row?

    Thanks,

    Jon
    =?Utf-8?B?Sm9u?=, Jan 13, 2005
    #1
    1. Advertising

  2. Jon,

    I can think of getting the table row count before making a DataBind call and
    then just keeping a count of items in the event handler. But often you can
    do the same things in PreRender event, when the grid is already fully built.
    Consider this.

    Eliyahu

    "Jon" <> wrote in message
    news:...
    > Hello all,
    >
    > Within the ItemDataBound event of the datagrid, what is the best way to
    > detect if the current item is the last row?
    >
    > Thanks,
    >
    > Jon
    Eliyahu Goldin, Jan 13, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tony Middleton

    Datagrid losing changes made in ItemDataBound

    Tony Middleton, Apr 22, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    300
    Tony Middleton
    Apr 22, 2004
  2. =?iso-8859-1?Q?Andr=E9_Almeida_Maldonado?=

    DataGrid - ItemDataBound

    =?iso-8859-1?Q?Andr=E9_Almeida_Maldonado?=, Jul 6, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    1,021
    Ken Cox [Microsoft MVP]
    Jul 7, 2004
  3. Dave

    ItemDataBound event of DataGrid

    Dave, Oct 7, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    2,935
    Scott Allen
    Oct 7, 2004
  4. RJN
    Replies:
    1
    Views:
    523
    Brent Humber
    Dec 24, 2006
  5. MattB
    Replies:
    4
    Views:
    21,224
Loading...

Share This Page