I have a DataGridView. Some of the cells receive their data from a serial port: I want to shove the data into the cell, and have it update the underlying bound object.
in VB you can use this one
Dim selectedRow As DataRowView selectedRow = dg.Rows(dg.CurrentCell.RowIndex).DataBoundItem selectedRow("MyProp") = "myValue" dg.NotifyCurrentCellDirty(True)
thanks to saeed serpooshan for last row