Datagrid column customization

J

Jon

I have a datagrid that is not bound to a dataset until the user inputs
information, so the datasource (and number/name of columns) is not
determined until runtime. However, I do know that the first column will
alsways need to be a link which uses the value of the first column as part
of the link.

I've looked up some information on column templates, hyperlink columns,
etc...but, I'm unsure which is best for my situation. Could someone point
me in the right direction?

Thanks
 
E

Eliyahu Goldin

Jon,

You can define the first column in design time and add other columns
dynamically in run time. If you want an advice on the type of the other
columns, please provide some details on them.

Eliyahu
 
J

Jon

The other columns will just be displayed as they are returned from the
database. Can you give me some details on how to define the first column?

Thanks
 
J

Jon

Thanks. I got it working for the first column. It successfully creates the
link with the data from the database.

I can't find a way to specify it should be the second column in
order...instead of the first. I mistyped before, the second column is
always the one that needs to be hyperlinked....

Thanks
 
E

Eliyahu Goldin

What about defining the first column as a bound one in design time and then
setting up data fields etc in run time?

The other columns, from the third on, should be also bound ones.

Eliyahu
 

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

Staff online

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top