How to add columns to a grid dynamically at run time?

A

Ahmet Gunes

Hi everybody,

For a web application, I need to add datagrid columns dynamically at
run-time.
But as I have already learned, I can't do this in a trivial manner. for
example; grd.Columns.Add(....
Instead; I think I have to inherit one of the DataGridColumns types like
"TemplateColumn, BoundColumn", etc.
What I exactly need is to be able to add template columns dynamically? Can
you please help me further in my way?

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,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top