Can datalist or datagrid do this?

  • Thread starter Thread starter Raymond Du
  • Start date Start date
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
 
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.
 
Back
Top