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
|