Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > BOOK: Beginning Visual C#
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 10th, 2010, 05:56 AM
Authorized User
 
Join Date: Oct 2009
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
Chris





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 03: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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.