Using VB2008 in a Windows application.
Currently this is what I use to reference a value in a cell in a datagridview:
Is it possible to reference the cell value by using the column name? Such as,
Currently this is what I use to reference a value in a cell in a datagridview:
Code:
sOrderNo = Me.dgvOrders.CurrentRow.Cells(15).Value
Is it possible to reference the cell value by using the column name? Such as,
Code:
sOrderNo = Me.dgvOrders.CurrentRow.Cells("OrderNo").Value