Files
docs-desktop/dotnet-desktop-guide/framework/winforms/controls/move-through-a-dataset-with-wf-bindingnavigator-control.md
T
Andy De George c0ba284473 Initial winforms content migrated (#18)
* Merge winforms framework content to working branch (#14)

* Breadcrumb / TOC / Move net5 to net folder (#15)

* change path from net5 to net

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Add .net 5 winforms placeholder article (#16)

* added some metadata and adjusted net5 placeholder

* corrections

* corrections

* corrections

* Test1

* Swapping landing page vs concept

* fix links

* Fix links

* Fix desc
2020-09-01 16:26:21 -07:00

2.3 KiB

title, ms.date, dev_langs, helpviewer_keywords, ms.assetid
title ms.date dev_langs helpviewer_keywords ms.assetid
Move Through a DataSet with BindingNavigator Control 03/30/2017
csharp
vb
datasets [Windows Forms], moving through
BindingNavigator control [Windows Forms], moving through datasets
examples [Windows Forms], BindingNavigator control
146d97be-3d97-400e-accb-860bbf47729d

How to: Move Through a DataSet with the Windows Forms BindingNavigator Control

As you build data-driven applications, you will often need to display collections of data to users. The xref:System.Windows.Forms.BindingNavigator control, in conjunction with the xref:System.Windows.Forms.BindingSource component, provides a convenient and extensible solution for moving through a collection and displaying items sequentially.

Example

The following code example demonstrates how to use a xref:System.Windows.Forms.BindingNavigator control to move through data. The set is contained in a xref:System.Data.DataView, which is bound to a xref:System.Windows.Forms.TextBox control with a xref:System.Windows.Forms.BindingSource component.

Note

Storing sensitive information, such as a password, within the connection string can affect the security of your application. Using Windows Authentication (also known as integrated security) is a more secure way to control access to a database. For more information, see Protecting Connection Information.

[!code-csharpSystem.Windows.Forms.DataNavigator#1] [!code-vbSystem.Windows.Forms.DataNavigator#1]

Compiling the Code

This example requires:

  • References to the System, System.Data, System.Drawing, System.Windows.Forms and System.Xml assemblies.

See also