zoukankan      html  css  js  c++  java
  • BindingNavigator & BindingSource Classes in VS2005

    BindingNavigator & BindingSource Classes in VS2005

     

    BindingNavigator Class represents the navigation and manipulation user interface for controls on a form that are bound to data.

     

    BindingSource Class encapsulates the data source for a form.

     

    In most cases, a BindNavigator is paired with a BindSource control to move through data records on a form and interact with them.

     

    Code snippet:

    private BindingSource EmployeesBindingSource;

    // Create a BindingSource for all the BindingNavigators to use

    this.EmployeesBindingSource = new BindingSource();

    // Associate the DataSet with the BindingSource.

    this.EmployeesBindingSource.DataMember = "Employee";

    this.EmployeesBindingSource.DataSource = ds;

     

    // Associate the BindingNavigators with the BindingSource

    this.EmployeesBindingNavigator.BindingSource = this.EmployeesBindingSource;

     

    BindingNavigator Constructor:

    public BindingNavigator( bool addStandardItems );

    addStandardItems

    true to show the standard VCR-like navigational UI; otherwise, false.

    BindingNavigator.jpg

  • 相关阅读:
    bzoj 4007
    bzoj 2190
    bzoj 2186
    bzoj 2005
    bzoj 2721
    bzoj 1951
    CF919F
    CF1005F
    CF1019C
    bitset用法详解
  • 原文地址:https://www.cnblogs.com/rickie/p/218902.html
Copyright © 2011-2022 走看看