I agree that you may want to look at RowCreated/RowDataBound handlers first. If you can do the trick with those, it will likely be easier than making custom types.
If you do need a custom type (or you are just curious on how to do it) you need to subtype GridView and override CreateRow. CreateRow can then produce an object of your GridViewRow subtype.
Superguppie.
Please remember to click “Mark as Answer” on the post that helps you. This can be beneficial to other community members reading the thread.
When all you've got is a Hammer, Every Problem looks like a Nail. Michael Swain.
superguppie
All-Star
48225 Points
8679 Posts
Re: Custom Class of GridViewRow
May 21, 2012 12:26 PM|LINK
I agree that you may want to look at RowCreated/RowDataBound handlers first. If you can do the trick with those, it will likely be easier than making custom types.
If you do need a custom type (or you are just curious on how to do it) you need to subtype GridView and override CreateRow. CreateRow can then produce an object of your GridViewRow subtype.
Please remember to click “Mark as Answer” on the post that helps you. This can be beneficial to other community members reading the thread.
When all you've got is a Hammer, Every Problem looks like a Nail. Michael Swain.