Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > BOOK: Beginning Visual C#
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning Visual C#
This is the forum to discuss the Wrox book Beginning Visual C#, Revised Edition of Beginning C# for .NET v1.0 by Karli Watson, David Espinosa, Zach Greenvoss, Jacob Hammer Pedersen, Christian Nagel, Jon D. Reid, Matthew Reynolds, Morgan Skinner, Eric White; ISBN: 9780764543821
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Visual C# section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
Old August 10th, 2010, 05:56 AM
Authorized User
Join Date: Oct 2009
Location: London
Posts: 18
Thanks: 2
Thanked 0 Times in 0 Posts
Default Chapter 18 Getting At Your Data

To whom it may concern

I am relatively new to programming, esp in C#, but I am looking to build an app that can navigate through records in an SQL database.

My colleagues have setup some stored procedures to access data from the database. I then created some Table Adapters, within a Data Source, to access these stored procedures.

The code below allows me to search for a particular record within the table adapter (taEmployeeMaster) based on the EmpID.
this.taEmployeeMasterTableAdapter.Fill(this.dsEmpl oyeeContact.taEmployeeMaster, ModifySearch);
where ModifySearch is a string input via a text box control on the Windows Form.

Based on this code, I should be able to use the Binding Context to navigate through the dataset - using Position++ and Position--? Below is the code I thought would perform this action, please can you help me identify why the code does not work?
this.BindingContext[this.dsEmployeeContact.taEmployeeMaster, EmpID].Position++

Thank you kindly for your assistance
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 18 rock1233 BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 1 November 14th, 2009 02:35 PM
Chapter 18 re: VSS kevinstruckhoff BOOK: Professional SQL Server 2005 Integration Services ISBN: 0-7645-8435-9 0 August 8th, 2006 11:04 AM
CHAPTER 18 example not working also! diegoborgh BOOK: Beginning JavaServer Pages 0 May 26th, 2005 11:16 PM

All times are GMT -4. The time now is 02:09 AM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.