DataGridViewRow::DataBoundItem Property
.NET Framework (current version)
Gets the data-bound object that populated the row.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Accessing data-bound objects directly through row objects is useful when you do not have direct access to the data source containing the objects. It is also convenient when you want to manipulate objects bound to selected rows or to rows passed as arguments to event handlers.
The following code example demonstrates how to use the DataBoundItem property to access a business object bound to a row. This code example is part of a larger example provided in How to: Access Objects Bound to Windows Forms DataGridView Rows.
.NET Framework
Available since 2.0
Available since 2.0
Show: