Hyperlink column when AutoGenerateColumns = True

D

Dawn Coelin

Hi, all -

Can I make a hyperlink column when the AutoGenerateColumns property of a
datagrid is set to "True"?

I have a column that is created by AutoGenerateColumns called "WOID". I
would like to make WOID a hyperlink that would bring you to another page to
edit that particular record. I know how to do it with bound columns, but
cannot find anything when the columns are autogenerated. We are using
AutoGenerate so that if the customer wants to add columns in the future, we
only have to add them in the stored proc that fills the datagrid.

TIA for your help!

Dawn
 
E

Elton Wang

All auto-generated columns are BoundColumn. Hence you
can't create hyperlink by AutoGenerateColumns = true.

Though, you can dynamically add HyperLinkColumn, and other
type of columns, to the datagrid according to your query
result.

HTH

Elton Wang
(e-mail address removed)

-----Original Message-----

Hi, all -

Can I make a hyperlink column when the
AutoGenerateColumns property of a
 
S

Sharmin Jose

Hi,
If you set AutoGenerateColumns=True and still provide custom column
definitions, will the DataGrid render both?

(e-mail address removed)
 

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,995
Messages
2,570,230
Members
46,817
Latest member
DicWeils

Latest Threads

Top