Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Re: gridview question on AlternatingItem and Item

Reply
Thread Tools

Re: gridview question on AlternatingItem and Item

 
 
bpd
Guest
Posts: n/a
 
      01-12-2007
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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Controlling what is regarded as Item/AlternatingItem K Viltersten ASP .Net 6 10-05-2009 10:04 PM
AlternatingItem without repeating code DebonairDC ASP .Net 1 11-11-2005 04:02 PM
AlternatingItem Style in asp:table Beffmans ASP .Net 2 07-20-2005 07:11 AM
XHTML block item inside and inline item tj.tzavaras@gmail.com HTML 2 04-28-2005 03:42 PM
OnItemDatabound requires Item or AlternatingItem and Item? kidpurple ASP .Net Datagrid Control 0 11-02-2004 07:22 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57