Can datalist or datagrid do this?

R

Raymond Du

Hi,

I would like to use a datalist or datagrid to display a list of checkboxes,
then on the postback find out which checkboxes were checked.

For example, I have the following data in an xml file:
<catalog>
<cd>
<title>Empire Burlesque</title>
<id>1</id>
</cd>
<cd>
<title>Hide your heart</title>
<id>2</id>
</cd>
<cd>
<title>Greatest Hits</title>
<id>3</id>
</cd>
</catalog>

I should have a table with 3 rows. Each row has 2 columns, the first is a
checkbox and the second is the title of the cd.

Can this be done in datalist or datagrid?

Thanks in advance
 
R

Raymond Du

Thank you for the response, but exactly what am I supposed to see at this
link? This link is about binding a datasource to a datagrid, I know how to
do that already. What I am asking is, other than displaying the data in the
data source, how I can add a checkbox to each row of data being displayed.
 

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

Top