Any easy way to dynamically create a template field in GridView?

G

gnewsgroup

I've been trying this these days, with no luck. I've read a couple of
articles about this, in which they both have a GridViewTemplate class
which has an InstantiateIn method. Neither of them seems to help
resolve my problem.

It does not seem to be hard to dynamically create a template using
their GridViewTemplate class. But I want to make one column of the
GridView LinkButton'ed, and the Text of these LinkButtons are bound to
the database.

Well, right now, I am working around this by hard-coding such
gridviews. But I would like to write a method to dynamically create
them. That will greatly save me a lot of repetitive copy-pastes of my
code.

Any vague idea to share? Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top