Taking the errors one at a time:
The name 'e' does not exist in the current context.
Would not happen in the
GetDataToTextBox
method shown, since
e
is a parameter to the method.
'object' does not contain a definition for 'Rows'
The
iops.DataGridView
property is declared as returning an
object
, not a
DataGridView
. Fix it to return the correct type.
Cannot implicitly convert type 'string' to 'int'.
The
CustomerID
property is declared as an
int
. You are trying to set it to a
string
:
iops.CustomerID = selectedRow.Cells[0].Value.ToString() ;
You'll have a similar error with the
CustomerStatus
property - it is declared as
bool
, and you are trying to set it to a
string
.