AspdotnetCodes.com
Search
Articles
Books
Resources
Asp.Net News
Downloads
Free Tech Magazines
Asp.Net Web Hosting
Archives
Softwares
Newsletter
Suggest Us
Link to Us
Feeds Subscription
Articles
Questions & Answers
Tips & Tricks
 oDs.Tables[0].Rows[i].Item[0] = strId; not working
Posted by Bhavesh Patel on  3/5/2009 4:06:58 PM Category: ADO.NET
Add to my favorites
Email to friend
The C# code below is not working item[0] not found
oDs.Tables[0].Rows[i].Item[0] = strId;

Post Your Reply Post New Question

 Viewer's Reply
What are you trying to do?
Answered By Moderator1 on 3/7/2009 1:48:42 AM
You cannot assign a string value directly to in item. You can do like this

oDs.Tables[0].Rows[0][0] = strId;

Rows[0][0] here first is the row index and second 0 is the column index.
 
Post Your Reply If you still have problem, post it again under this reply for better response.

 
Sponsored by
Backup and Recovery Best Practices for Microsoft SQL Server 2005
No Nonsense XML Web Development With PHP - Free 146 Page Preview!
Sexy Web Design - Free 71 Page Preview!