Thread: Data Reader
View Single Post
  #2 (permalink)  
Old July 3rd, 2009, 02:58 PM
Lee Dumond's Avatar
Lee Dumond Lee Dumond is offline
Wrox Author
Points: 4,250, Level: 27
Points: 4,250, Level: 27 Points: 4,250, Level: 27 Points: 4,250, Level: 27
Activity: 28%
Activity: 28% Activity: 28% Activity: 28%
 
Join Date: Jan 2008
Location: Decatur, IL, USA.
Posts: 807
Thanks: 12
Thanked 140 Times in 140 Posts
Default

You are only selecting the CustomerID field in your command statement

cmdSelect = newSqlCommand("Select CustomerID From Customers", conCust);

Therefore, CompanyName, ContactName, and Phone are not contained in the reader.
__________________
Visit my blog at http://leedumond.com
Follow me on Twitter: http://twitter.com/LeeDumond

Code:
if (this.PostHelpedYou)
{
   ClickThanksButton(); 
}
Reply With Quote
The Following User Says Thank You to Lee Dumond For This Useful Post:
Banishah (July 3rd, 2009)