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

  • Thread starter Thread starter gnewsgroup
  • Start date Start date
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.
 
Back
Top