Re: gridview question on AlternatingItem and Item

Discussion in 'ASP .Net' started by bpd, Jan 12, 2007.

  1. bpd

    bpd Guest

    To get the Row, use GridViewRowEventArgs when using RowCreated or
    RowDataBound. e.g.,
    e.Row.RowType...

    I don't think you can change the RowType, but I've never had a reason
    to.

    WebBuilder451 wrote:
    > How and/or where can i trap the row type when a grid view row is being created.
    > I want to force the row to be AlternatingItemTemplate or ItemTemplate
    > depending on a value from the datasource. I'd guess that i'd do it during
    > RowCreated or RowdataBound but i have not found how to get then set the
    > current row.
    >
    > Any help would be appreciated!
    > KES
    > --
    > thanks (as always)
    > some day i''m gona pay this forum back for all the help i''m getting
    > kes
    bpd, Jan 12, 2007
    #1
    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. Beffmans

    AlternatingItem Style in asp:table

    Beffmans, Jul 20, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    423
    =?Utf-8?B?U2l2YSBN?=
    Jul 20, 2005
  2. DebonairDC

    AlternatingItem without repeating code

    DebonairDC, Nov 11, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    336
    DebonairDC
    Nov 11, 2005
  3. Replies:
    2
    Views:
    596
  4. K Viltersten
    Replies:
    6
    Views:
    379
    Nathan Sokalski
    Oct 5, 2009
  5. kidpurple

    OnItemDatabound requires Item or AlternatingItem and Item?

    kidpurple, Nov 2, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    255
    kidpurple
    Nov 2, 2004
Loading...

Share This Page