Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jun 01, 2012 10:49 AM by superguppie
May 15, 2012 01:25 PM|LINK
As on subject, how do we do it?
May 16, 2012 01:58 PM|LINK
We can't. At least, not unless we redo GridView as well.
What do you want to do to GridViewRow?
May 17, 2012 08:22 AM|LINK
Do you mean you want to bind custom class to GridView?
May 18, 2012 05:15 AM|LINK
hi superguppie, thanks.
How to redo GridView and create custom GridViewRow ?
I just want to add some functions to GridViewRow.
Hi Qin, i just want to create some functions on GridViewRow. thanks
May 18, 2012 05:34 AM|LINK
You can handle the RowDataBound event of GridView to do anything to GridViewRow (e.Row).
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.
May 28, 2012 11:35 AM|LINK
Hi Qin and Superguppie,
I want to create a Function (that i want to it to reside on GridViewRow that) will Get The Object Value. By doing this, i will shorten my coding as well as for easier maintenance.
In Form View customer class example, i create a function :
public string GetTextBoxValue(string sObjectName)
in my coding, i only need to issue :
Jun 01, 2012 10:49 AM|LINK
You may want to try this with an