Ktl-icon-tai-lieu

Chapter 8 Implementing DataBound Controls

Được đăng lên bởi bai-tap-lon
Số trang: 7 trang   |   Lượt xem: 341 lần   |   Lượt tải: 0 lần
Chapter 8

Implementing Data-Bound Controls

Chapter 8
Lesson 1: Creating a Data-Bound Form with
the Data Sources Wizard
Lesson 2: Implementing Data-Bound
Controls
Lesson 3: Working with the DataGridView

Lesson 1: Creating a Data-Bound Form
with the Data Sources Wizard
What is Data-Bound controls?
–

Bound and Un-Bound mode
ID, Name…

–

–

Position???

Dataset (Rows)
Dataset (Rows)
Dataset
Dataset (Rows)
(Rows)
Dataset (Rows)

Data-bound controls are WinForms controls those can
easily bind with data components: DataGrid, ListBox, and a
ComboBox
have properties, which you can set as a data component
and theyre ready to present your data in WinForms:
DataSource,DisplayMember, DataMember.

Lesson 1: Creating a Data-Bound Form
with the Data Sources Wizard
DEMO
–
–

Creating a Data-Bound Windows Form
Ex p411

BinDingSource
Track record position
–

MoveNext, MovePrevious…

Change data in datasource
–

Add, Delete, EndEdit

BindinhSource

ID, Name…

Dataset (Rows)
Dataset (Rows)
Dataset
Dataset (Rows)
(Rows)
Dataset (Rows)

Lesson 3: Working with the
DataGridView
ErrorText proerty of row and cell in row
Validating Input in the DataGridView
–

handle the DataGridView .CellValidating event
and cancel the edit if the value fails validation (is
raised when a cell loses focus.)

Lesson 3: Working with the
DataGridView
Format a DataGridView Using Styles
–
–

DefaultCellStyle
AlternatingRowsDefaultCellStyle

Lab: Working with the DataGridView
–

Page 431

...
Chapter 8
Implementing Data-Bound Controls
Chapter 8 Implementing DataBound Controls - Trang 2
Để xem tài liệu đầy đủ. Xin vui lòng
Chapter 8 Implementing DataBound Controls - Người đăng: bai-tap-lon
5 Tài liệu rất hay! Được đăng lên bởi - 1 giờ trước Đúng là cái mình đang tìm. Rất hay và bổ ích. Cảm ơn bạn!
7 Vietnamese
Chapter 8 Implementing DataBound Controls 9 10 796