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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Number of DataListItem objects in the collection being fetched incorre

Status
Not open for further replies.

collegian

Programmer
Jul 1, 2010
64
0
0
US
Hello All,

I am binding a datalist to some table 0 of a dataset from the database. When I check the number of rows in the dataset table 0 it's coming as 129 but when I check the count of the datalist items(using Datalist_Name.Items.Count) inside the datalist item created event I am getting a maximum count of 128.Due, to this I am unable to assign values to the last label control(last as in the last row) present inside the datalist dynamically. I am not sure where I am going wrong. I even tried to replicate the same code inside the ItemDataBound event but even then I am getting the same error.Any ideas will be greatly appreciated.


Thanks.
 
Thanks for the reply.I was able to figure it out.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top