Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

only firts record is displayed...

Status
Not open for further replies.

xpanic

Programmer
Jan 29, 2004
14
0
0
MX
hello, i have a problem with a datalist, the problem is this:
I have a table with N records, but in the datalist only the first record is displayed in N rows, what could be happening?, if I use the same dataset for a datagrid it works ok.

the data is stored in access database.
 
How are you binding the table (and what actually is this table i.e a DataTable, DataSet etc) to the datagrid?


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
thanks for the answer.
I have just one connection, adapter and dataset objects created in design mode.

the dataset contains all the records from one table in the database.
I have this in the page load event

contactsadapter.fill()
datalist1.databind()

-the datasource of datalist1 is contactsdataset.
I edit the items template, adding one label for each field with its text property binded to some field of the dataset
and when the form is displayed just the first record of the dataset is showed N times.

If i use the same dataset as a datasource for a datagrid object and then use the property builder the datagrid is displayed ok.

what could be wrong?






 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top