Home Forums WinForms controls Xceed Grid for WinForms Access contents Datasource of Xceed.Grid.GridControl Reply To: Access contents Datasource of Xceed.Grid.GridControl

Xceed Support
Member
Post count: 5658

Here is some VB.NET on how to access the DataSource and a DataRow (in this snippet, the first cell of the first row).

<code>
Dim dataSource As Object = gridControl1.DataSource

Dim bs As BindingSource = DirectCast(dataSource, BindingSource)

Dim value As Integer = CInt(gridControl1.DataRows(0).Cells(0).Value)
</code>

Imported from legacy forums. Posted by CharlesB (had 389 views)