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

  • 相关阅读:
    23种设计模式-----行为模式
    23种设计模式-----创建型模式、结构型模式
    字节码操作、javassist使用
    反射机制(reflection)
    NFC手机
    NFC简介
    不同技术的过滤条件的定义
    [linux] ubuntu系统tips
    图算法(一)
    跳跃表skiplist
  • 原文地址:https://www.cnblogs.com/rickie/p/218902.html
Copyright © 2011-2022 走看看