Last post Jun 01, 2012 11:49 AM by superguppie
May 15, 2012 02:25 PM|andysujoto|LINK
As on subject, how do we do it?
May 16, 2012 02:58 PM|superguppie|LINK
We can't. At least, not unless we redo GridView as well.
What do you want to do to GridViewRow?
May 17, 2012 09:22 AM|Qin Dian Tang - MSFT|LINK
Do you mean you want to bind custom class to GridView?
May 18, 2012 06:15 AM|andysujoto|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 06:34 AM|Qin Dian Tang - MSFT|LINK
You can handle the RowDataBound event of GridView to do anything to GridViewRow (e.Row).
May 21, 2012 01:26 PM|superguppie|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 12:35 PM|andysujoto|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 11:49 AM|superguppie|LINK
You may want to try this with an