id = DataGridPagos.Rows(DataGridServicio.CurrentRow.Index).Cells(0).Value.ToString()
id
is an integer try to parse it to an
int
value and assign it to the sql statement,
Quote:
specified values for some of the required parameters.
basically this error occurs when the values is not specified to the sql statement. i suspect the value is empty from the grid cell. validate the id before use.