Home › Forums › WinForms controls › Xceed Grid for WinForms › Access contents Datasource of Xceed.Grid.GridControl › Reply To: Access contents Datasource of Xceed.Grid.GridControl
Here is some VB.NET on how to access the DataSource and a DataRow (in this snippet, the first cell of the first row).
Dim dataSource As Object = gridControl1.DataSource
Dim bs As BindingSource = DirectCast(dataSource, BindingSource)
Dim value As Integer = CInt(gridControl1.DataRows(0).Cells(0).Value)
Imported from legacy forums. Posted by CharlesB (had 389 views)