473,379 Members | 1,491 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Can datalist or datagrid do this?

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
Nov 18 '05 #1
3 892
Take a look at this:

http://samples.gotdotnet.com/quickst...ataaccess.aspx

chanmm
"Raymond Du" <rd**@yahoo.com> wrote in message
news:uK**************@tk2msftngp13.phx.gbl...
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

Nov 18 '05 #2
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.

"chanmmn" <ch*****@hotmail.com> wrote in message
news:uX**************@TK2MSFTNGP10.phx.gbl...
Take a look at this:

http://samples.gotdotnet.com/quickst...ataaccess.aspx
chanmm
"Raymond Du" <rd**@yahoo.com> wrote in message
news:uK**************@tk2msftngp13.phx.gbl...
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


Nov 18 '05 #3
http://www.developerfusion.com/show/4632/

this should help you.

"Raymond Du" <rd**@yahoo.com> schreef in bericht
news:uK**************@tk2msftngp13.phx.gbl...
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

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: wsyeager36 | last post by:
I have a datagrid inside a datalist. The datalist shows parent info and the datagrid shows the child info for that parent. There is a checkbox on each row of the child datagrid. Also inside the...
1
by: bill yeager | last post by:
I have a datagrid control within a datalist control. When I try and do a "Find" on the control, the object comes back with nothing and then my pgm crashes. I am 100% sure that my datagird inside...
8
by: Nevyn Twyll | last post by:
I have a multi-level datalist setup: DataList1 DataList2 MyGrid I have columns explicitly defined for the grid in the html. Sometimes, On the initial Load() of the Page, I want to add extra...
3
by: CVerma | last post by:
Hi, I have an embedded datagrid within a datalist. I am not able to perfrom paging in the datagrid. Any ideas? Here is my code: Here is my Simplegrid.cs file: using System; using...
6
by: tshad | last post by:
I need to get to a status label I have on my footer section of my datalist. There is no event happening that would go to the footer. I am just doing some processing and want to update the label...
2
by: Eduardo Rosa | last post by:
Hello people, I'm using DataList to show some info from db (sqlserver), my question is about how make a button that call a function to do something using info from a line of the DataList. I...
2
by: Alex Smith | last post by:
Hi friends Can anybody tell me where to use datagrid and where to use datalist. Or explain Different between DataGrid and DataList. Regards, Alex
1
by: weird0 | last post by:
What is the difference between a DataList control and DataGrid control ? How and where are DataLists used? Can somebody place some good links for its use.
1
by: Brock | last post by:
First note that I am using Framework 1.1. I have an .aspx page that is displaying a list of employees, but only the Employee Number, First Name, Last Name, and Title. It is working great. I...
1
by: Brock | last post by:
Thanks in advance... (you can see a screenshot of what my form looks like currently at http://www.juggernautical.com/DataGrid.jpg - the Datalist is super-imposed in 'design view' but the DataGrid...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.