Datalist of datagrid

S

schapopa

Hi everybody,

I want to create datagrid or datalist that has 4 columns:

column1 - number (that column would have colspan =2 or more)
column2 - question
column3 - data
column4 - button delete

(Row 2 and more)
column2 - answer(s)(that column would have colspan =1 or more depending
on number of answers)
column3 - data
column4 - button add or delete

So now when I click on button Add I would want to see another row with
answer added.

I am trying to achive that with datalist, but can somebody recommend me
what would be better for this kind of table? Are there any links with
something similar?
Regards
Schapopa
 
A

addup

I'm not really sure what you are trying to achieve. Could you post a
mockup?

look at this with a monospaced font

----------------------------------------
1. | Question | data | -
| Answer #1 | data | + -
| Answer #2 | data | + -
----------------------------------------
2. | Question | data | -
| Answer #1 | data | + -
| Answer #2 | data | + -
| Answer #3 | data | + -
----------------------------------------
3. | Question | data | -


This is a classic parent/child (or "nested") view --- there are lots of
ways of doing this on the web. It will depend upon how your data is
structured.

Also - you may eventually want to use a repeater as it gives you more
control.

Hope this helps
-- addup --
 
S

schapopa

Yes, the way you presented my datagrid, datalist or repeater is what I
want to achieve. I will look at repeater and see what can I do with it.
Thank you and regards
Schapopa
 

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

No members online now.

Forum statistics

Threads
473,772
Messages
2,569,588
Members
45,100
Latest member
MelodeeFaj
Top